removing unwanted spaces