This function returns a copy of the input string with leading and trailing whitespace removed.$string.trim(<inStr>)
inStr #set($str=' Hello My Cruel World! ')
#set($str2=$string.trim($str))
#set($tail='ABC')
Original string and tail: $str$tail
New string and tail: $str2$tailOriginal string and tail: Hello My Cruel World! ABC
New string and tail: Hello My Cruel World!ABC
| OpenText StreamServe 5.6.2 | Updated: 2018-01-26 |