I need to write a function in python that gets a string-
If the first or last characters in the string are spaces, then they should be removed (both). If not than nothing should be done.
" Hello " ----> "Hello"
" Hello" -----> "Hello"
"Hello " -----> "Hello"
"Bob has a cat" ----> "Bob has a cat" (none of the spaces in the middle are removed.)