added function string.indexOf()