fixed missing version of RiString.indexOf