Strip spaces.
Add a disabled clear() method to Appender in the else branch to avoid UFCS hijacking.
Merge pull request #2141 from AndrejMitrovic/AppenderClear

Appender clear