public int SearchEndString(String TargetString, int CharNumStart, char EndStringChar) {
        int FileTextPointer = 0;
        try {
            FileTextPointer = CharNumStart;
            while (true) {
                FileTextPointer = TargetString.indexOf(EndStringChar, FileTextPointer + 1);
                if (FileTextPointer > 0) {
                    if (TargetString.charAt(FileTextPointer - 1) != '\\') {
                        break;
                    }
                } else {
                    break;
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
            return FileTextPointer;
        }
        return FileTextPointer;
    }