strip

strip() -> string

Strips all leading and trailing whitespace from a string.

Example

'    hello world!    '.strip();
// -> 'hello world!'