code: public int indexOf(char... candidates){
          int i = index;
          while(i<string.length()){
              char ch = string.charAt(i);
              if(ch=='"')
                  i = matchingQuote(i);
              else{
                  for(char candidate: candidates){
                      if(ch==candidate)
                          return i;
                  }
              }
              ++i;
          }
          return -1;
      }
docs: /*-------------------------------------------------[ Index-Of ]---------------------------------------------------