ltrim
Description
Removes whitespace from the start of a string while leaving the end unchanged.
Syntax
Like many functions in DataPrime, ltrim
supports two notations, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.
Arguments
Name | Type | Required | Description |
---|---|---|---|
value | string | true | The string to trim |
Example
Clean up an extracted username
Consider the following document:
Extracting the username produces a leading space:
Use ltrim
to remove the unwanted space:
Output
Theme
Light