Paste your text: leading and trailing spaces on each line are removed, and multiple spaces are collapsed into one.