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