I think instead of all of these `.search` calls, we should just do `.indexOf`