trim()
Usage
trim(object)
Description
Removes any leading or trailing whitespace from the given object. If the object is a string, a trimmed version will be returned. If it is a collection, a collection of trimmed strings will be returned.
Example
${trim(' A text with lots of whitespace ')}
${trim(merge(' A text with lots of whitespace ', ' Another text with lots of whitespace '))}
results in
A text with lots of whitespace
[A text with lots of whitespace, Another text with lots of whitespace]