define a function that eliminates multiple white spaces python code example
Example: trim multiple spaces in python
>>> import re
>>> re.sub(' +', ' ', 'The quick brown fox')
'The quick brown fox'
>>> import re
>>> re.sub(' +', ' ', 'The quick brown fox')
'The quick brown fox'