code: protected int indexOf(String text, String... values) {
          int answer = -1;
          for (String value : values) {
              int idx = text.indexOf(value);
              if (idx >= 0) {
                  if (answer < 0 || idx < answer) {
                      answer = idx;
                  }
              }
          }
          return answer;
      }
docs: Returns the lowest index of the given list of values