rtrim()
rtrim(string): String
Removes blanks (space and tab characters) from the right side of specified string.
string |
String |
Source string |
Return
Source string with blanks at the right side removed.
println(rtrim(" abc def ")); //Will print " abc def"