human
remove all whitespace in a string
assistant
Here is some code to remove all whitespaces in string `sentence`

sentence = re.sub('\\s+', '', sentence, flags=re.UNICODE)

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