src code
String#strip() → String
Strips all leading and trailing whitespace from a string.
' hello world! '.strip(); // -> 'hello world!'