add String.indexOfEx and String.lastIndexOfEx