remove needless spaces