You can use `indexOf` here.