trim()

Removes whitespace characters from the beginning and end of the current String.

Syntax

String  trim()