Added whitespace trimming.