--- title: "Right trim" slug: "core-right-trim-resolver" updated: 2026-04-16T12:39:13Z published: 2026-04-16T12:39:13Z canonical: "docs.lobstersoftware.com/core-right-trim-resolver" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Right trim *See also:* [Trim](/v1/docs/en/core-trim-string-resolver), [Left trim](/v1/docs/en/core-left-trim-resolver) > [!NOTE] > **Value resolver – Abstract** > > **Purpose:** Removes trailing *whitespace* characters from a string passed as *input value*. > > > [!TIP] > > Tooltip > > > > - **Usage**: The return value provides the string taken as *input value* without any trailing *whitespace* characters. > > - **NOTE:** For *input values* that are not *strings*, their *string* mapping is processed. ![images/download/attachments/106958300/image2022-6-30_10-38-6-version-1-modificationdate-1656578286712-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-6-30_10-38-6-version-1-modificationdate-1656578286712-api-v2.png) The [Right trim](/v1/docs/en/core-right-trim-resolver) value resolver removes trailing *whitespace* characters from a string passed as *input value*. - If no value (`$null`) is present as *input value*, no value (`$null`) is returned. - For *input values* that are not *strings*, their *string* mapping is processed. ## Configuration The [Right trim](/v1/docs/en/core-right-trim-resolver) value resolver expects a string as *input value* and does not use any parameters. ## Example Whenever a **Lobster Data Platform/Orchestration** client session is logged in via login or the browser is reloaded with an already logged in session, it is then checked whether a notification (in the form of a text file) exists for the current calendar day. If this is the case, the text from this file is displayed in a message box. - The administrator can upload messages per calendar day to a non-public folder set up for this purpose of the **Lobster Data Platform/Orchestration** server file system (`./upload/billboard/alert/`). - The format for the file name is arranged as follows: `<due date in format yyyyDDmm>_all.txt` so e.g. `20220630_all.txt` for a message that is displayed on 30th June 2022. To prevent the message windows from being unnecessarily large, *whitespace* (spaces and before all blank lines) at the end of the message should be automatically removed. Runtime example: ![images/download/attachments/106958300/image2022-6-30_10-43-41-version-1-modificationdate-1656578621986-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-6-30_10-43-41-version-1-modificationdate-1656578621986-api-v2.png) Configuration: | The "Client logged in" and "Client reloaded" events (see [Login (Events)](/v1/docs/en/core-authentication-event)) are selected as **Triggering events** for event handling. The **Validating rule** uses an [Entity property rule](/v1/docs/en/core-entity-property-rule) to determine whether the agreed directory contains a message for the current calendar day: - A [Concat strings](/v1/docs/en/core-concat-string-resolver) value resolver builds the current-day file path. The [Format date](/v1/docs/en/core-date-format-resolver) value resolver is concatenated with the [Relative date with time](/v1/docs/en/core-date-time-value) value resolver (collapsed in the image) to output the system date ("Now") in the format `yyyyMMdd`. - If there is a file in the specified path, the [File reference](/v1/docs/en/core-file-reference-content-builder) value resolver returns it as a "Content" object. Within the **Validating rule**, only the "non-empty" return value is of interest. As a precaution, however, the return value is stored in the `file` variable by the [Store value as variable](/v1/docs/en/core-store-value-resolver) value resolver, so that the file does not have to be read again when successful. - The only **Action on passed rule** displays the message by a [Show alert (Popup)](/v1/docs/en/core-popup-actor) event action that reads the file content (`body`) from the `file` variable and "edits" it via the concatenated [Right trim](/v1/docs/en/core-right-trim-resolver), in order to remove *whitespace* at the end of the file, if necessary. **NOTE:** - For the **Type** "Alert", the **Close after (seconds)** setting is irrelevant, because the displayed message dialog can only be closed interactively (by clicking on "OK"). - Since the *string* representation of a text file (in a "Content" object) is by definition the plaintext of the file, the [Object property](/v1/docs/en/core-property-resolver) value resolver for the `body` could be omitted here. Its return value (of the `byte[]` type) effectively provides the same string as *input value* for the [Right trim](/v1/docs/en/core-right-trim-resolver) value resolver. | ![images/download/attachments/106958300/image2022-6-30_10-39-21-version-1-modificationdate-1656578361738-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-6-30_10-39-21-version-1-modificationdate-1656578361738-api-v2.png) | | --- | --- |