clean trailing space symbols