str.strip â new_str
Instance Public methods
Returns a copy of str with leading and trailing whitespace removed.
" hello ".strip #=> "hello" "\tgoodbye\r\n".strip #=> "goodbye"
Returns a copy of str with leading and trailing whitespace removed.
" hello ".strip #=> "hello" "\tgoodbye\r\n".strip #=> "goodbye"
Please login to continue.