private boolean canMerge(Character c) {
        if (c == null) {
            return true;
        }
        switch (c) {
            case '*':
            case '+':
            case '?':
                return false;
            default:
                break;
        }
        return true;
    }