Fix typos

Fix typos and remove trailing whitespace.