Reduce multiple spaces to a single space using sed
sed 's/ */ /g'
That's two spaces followed by a star in the pattern match and a single space in the replacement.
The key is the g at the end, which means global meaning it will act on multiple occurences
within the line.