LTrim
Removes all empty characters (whitespace) from the left side of a specified string.
Syntax
LTrim( StringValue );
Parameters
| Parameter Name | Type | Description | Optional? | Default Value |
|---|---|---|---|---|
| StringValue | String | The string to trim. | No | n/a |
Output
The updated string with all empty characters on the left removed.
Use Case
Although the Trim function is useful for removing all whitespace from either side of the string, you may in fact want to keep spaces on one particular side. In cases like this, you can use LTrim to selectively remove one side’s worth of whitespace, but not another. If you start with the string “ Tom ”, using LTrim converts this into “Tom ”.