trimRight() Removes whitespace characters from the end of the current String. Syntax String trimRight() Related conceptstrim()trimCompress()trimLeft()