Remove unnecessary space after newline character.