Collapse adjacent newlines
Strip whitespace from each line