remove trailing whitespace + typos