delete useless spaces