How can I remove all white space from the beginning and end of a string?
Like so:
"hello"
returns "hello"
"hello "
returns "hello"
" hello "
returns "hello"
" hello world "
returns "hello world"
How can I remove all white space from the beginning and end of a string?
Like so:
"hello"
returns "hello"
"hello "
returns "hello"
" hello "
returns "hello"
" hello world "
returns "hello world"