Fix error message typos

Fix typo and remote some extra whitespace.