delete spaces before parsing