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'])}
CODE

Structure​

fn:trim(string)

Parameters​

Parameter

Description

string

Specifies the target string.