Remove trailing whitespace and other typos