protected static int indexOf(final char[] chars, final String str, final int fromIndex) {
        for (char ch : chars) {
            if (str.indexOf(ch, fromIndex) != -1) {
                return str.indexOf(ch, fromIndex);
            }
        }
        return -1;
    }