Change regex to manual string search