How it works and examples
Collapse mode replaces every whitespace run with one space and trims the ends. Line mode trims each line, preserves blank lines and uses LF separators. Example: a, several spaces, b becomes a b. It does not change letter case.