trimEnd
Removes whitespace characters from the end of the string. Value pattern can be used to trim a specific pattern from the end (e.g. ".txt") instead of whitespace.
Removes whitespace characters from the end of the string. Value pattern can be used to trim a specific pattern from the end (e.g. ".txt") instead of whitespace.