Fix typo, remove excess trailing spaces

Fixed a spelling mistake. While here I cleaned up all the useless trailing spaces.