fix typo and trailing spaces