working for no spaces