fix spelling and remove trailing whitespace