JavaStringtrim

Removes leading and trailing whitespace.

Syntax

str.trim()