trim()

Removes white space characters from the beginning and end of the current String.

Syntax

String  trim()