private String resolveField(String field) {
        if (field.endsWith("!") || field.endsWith(">") || field.endsWith("<")
                || field.endsWith("%"))
            field = field.substring(0, field.length() - 1);
        return field;
    }