Remove unnecessary trailing whitespace