remove useless spaces in echo