remove unwanted spaces