public BooleanOperator getBooleanOperator(String string) {
        char[] chars = string.toCharArray();

        for(char c : chars) {
            if(c == '&') return BooleanOperator.AND;
            else if(c == '^') return BooleanOperator.OR;
        }

        return BooleanOperator.AND;
    }