Should do this `toLowerCase()` call before calling `indexOf()` above.