# TrimEnd

| **Name**    | ***TrimEnd***                                                                                                                  |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Syntax      | TrimEnd (String str)                                                                                                           |
| Purpose     | To return a string after removing any trailing white space characters from the specified string.                               |
| Description | Removes any trailing white spaces from the string argument. Whitespaces include space, new line, tab, and linefeed characters. |
| Return Type | String                                                                                                                         |
| Parameters  | str \[System.String] – String which will be trimmed                                                                            |

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/7Ksdjn7A0nz1B1gXogWk/0.png)

**Example**

In this example, we are passing the required parameters to the function transformation object using a *Variables* object.

Where,

*str*: ABC

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/8uyVy8Ti4AmhhpsrbnXb/1.png)

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/S7g8cRd64e9Sxh5OcnZO/2.png)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has returned a string value, with trimmed trailing whitespace characters.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/MqaxEY81NfqKkNBAzluE/3.png)
