replace extra spaces