remove redundant spaces