Remove trailing spaces throughout