Using Remove Extra Spaces: practical guide
Tidy spacing in pasted text
Text copied from PDFs, emails and web pages often has double spaces, spaces at the start or end of lines, and gaps between words. This tool collapses them so the text is clean before you publish or import it.
Choose how much to remove
Removing spaces inside a line is different from removing blank lines. If your text has paragraphs, keep the line breaks. Preserve spaces in places where they matter, such as code and aligned tables.