extra spaces should be removed