remove useless duplicate spaces