Fixed bug in trimming whitespace