Have you encountered a text file full of words separated by multiple extra space between words? Mostly, these files are caused by data export mechanism by some application processing software.
Now, here's how to remove and delete those multiple and extra spaces between words of a file.
# cat testfile.txt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tomboy