#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n, i, j, g = -1, f = 0, d = 0, k;
    string s;
    string a = "abacaba";
    cin >> n;
    cin >> s;
    vector<int> v;
    vector<string> d1;
    for (i = 0; i + 6 < n; i++) {
      d = 0;
      for (j = i; j < i + 7; j++) {
        if (s[j] == '?') {
          d++;
          continue;
        } else if (s[j] != a[j - i])
          break;
      }
      if (d == 0 && j == i + 7) f++;
      if (d != 0 && j == i + 7) {
        g = i;
        v.push_back(i);
      }
    }
    if (f == 1) {
      cout << "YES" << endl;
      for (i = 0; i < n; i++) {
        if (s[i] == '?')
          cout << 'z';
        else
          cout << s[i];
      }
    } else if (f > 1)
      cout << "NO";
    else {
      if (g == -1)
        cout << "NO";
      else {
        for (k = 0; k < v.size(); k++) {
          g = v[k];
          string d = "";
          for (i = 0; i < g; i++) {
            if (s[i] == '?')
              d.append(1, 'z');
            else
              d.append(1, s[i]);
          }
          for (; i < g + 7; i++) d.append(1, a[i - g]);
          for (; i < n; i++) {
            if (s[i] == '?')
              d.append(1, 'z');
            else
              d.append(1, s[i]);
          }
          d1.push_back(d);
        }
        int flag = 0;
        for (k = 0; k < d1.size() && flag == 0; k++) {
          string d = d1[k];
          f = 0;
          for (i = 0; i + 6 < n; i++) {
            for (j = i; j < i + 7; j++) {
              if (d[j] != a[j - i]) break;
            }
            if (j == i + 7) f++;
          }
          if (f == 1) {
            flag = 1;
            cout << "YES" << endl;
            cout << d;
          }
        }
        if (flag == 0) cout << "NO";
      }
    }
    cout << endl;
  }
  return 0;
}
