src code

instance method String#strip

String#strip() → String

Strips all leading and trailing whitespace from a string.

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