Collapse multiple spaces and trim each line.
Result
—
Remove duplicate, leading and trailing spaces from your text.