fixed too eager trailing space remover