indexOf() must be checked against -1