fn:trim
- 1 Minute to read
- Print
- DarkLight
fn:trim
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
The function fn:trim removes leading and trailing white space, tabs, and linefeed characters from a string. The value returned is a string data type.
Example
The data imported from an older source had not been cleaned up and contained white spaces. The values must be cleaned up before being evaluated in an expression.
The data was imported to a member attribute named remarks. The function for removing the white space is constructed as follows:
${fn:trim(user.MemberAttribute['remarks'])}
Structure
fn:trim(string)
Parameters
Parameter | Description |
---|---|
string | Specifies the target string. |
Was this article helpful?