and correct a trailing space on a name
correct other random trailing spaces (s/ '$/'/g)