ENYO-1887: use string.indexOf instead of string.search