Template Engine language reference > Template Engine utilities > String functions > $string.trimLeft

$string.trimLeft
This function returns a copy of the input string with leading whitespace removed.
Syntax
$string.trimLeft(<inStr>)
inStr
Template examples
Example 106
Template
#set($str='        Hello My Cruel World!')
#set($str2=$string.trimLeft($str))
Original string: $str
New string: $str2
Output
Original string:         Hello My Cruel World!
New string: Hello My Cruel World!
 
OpenText StreamServe 5.6.2 Updated: 2018-01-26