Remove the redundant empty spaces.