removing extra whitespace