private String initValue(String value) {
        String result = "";
        if (value != null) {
            if (value.startsWith("'") && value.endsWith("'")) {
                value = value.substring(1, value.length() - 1);
            }
            if (value.endsWith(")") && !value.contains("(")) {
                result = value.substring(0, value.length() - 1);
            } else {
                result = value;
            }
        }
        return result.trim();
    }