Implemented the no spaces function into the index