Human: remove all whitespace in a string Assistant: 
Here is some code to remove whitespace in string `sentence` from beginning and end

sentence.strip()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.