dealt with extra spaces