Remove unnecessary whitespace trimming