# Trim (Start)

| **Name**    | ***TrimStart***                                                                                                               |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Syntax      | TrimStart (String str)                                                                                                        |
| Purpose     | To return a string after removing any leading white space characters from the specified string.                               |
| Description | Removes any leading 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FEPAFsZhV37zZDxRMWVxm%2F0.png?alt=media)

**Example**

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

Where,

*str*: ABC

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FIZmxKNoo0tY4XLAnYDSs%2F1.png?alt=media)

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 leading whitespace characters.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fla5oDw57p7PNEqa3YrJ0%2F2.png?alt=media)
