trim
Description
Removes whitespace from both the start and end of a string.
Syntax
Like many functions in DataPrime, trim
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 spaces at the beginning and end:
Use trim
to remove the extra spaces:
Output
Theme
Light