Fixed trailing whitespace bug