Input
How trimming works: leading and trailing spaces are removed from each line, then the whole block is trimmed once more. Whitespace-only input is allowed and will trim down to an empty result.
How trimming works: leading and trailing spaces are removed from each line, then the whole block is trimmed once more. Whitespace-only input is allowed and will trim down to an empty result.