remove trailing space and typo