remove some useless empty spaces