fixing trailing spaces