removing excess spaces