removing extra spaces.