Switched from .search to .indexOf in favor of speed.