remove some extra spaces