Fixed whitespace trim bug