remove extra spaces  in strings