trim()
trim(string): String
Removes blanks (space and tab characters) from both sides of specified string.
string |
String |
String to trim |
Return
Source string with blanks at both sides removed.
print(trim(" abc def ")); //will print "abc def"