There are definitely better ways to do this...

Via regex: `re.sub('\s+', ' ', string)`