remove extra spaces.