Remove unnecessary trailing whitespace.