I want to eliminate all the whitespace from a string, on both ends, and in between words.
I have this Python code:
def my_handle(self): sentence
For removing whitespace from beginning and end, use strip.
strip
>> " foo bar ".strip() "foo bar"