#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(time(0));
const double eps = 1e-10;
const long long N = 2e5 + 7;
const long long MOD = 1e9 + 7;
long long pw(long long b, long long p) {
  long long res = 1;
  while (p > 0) {
    if (p & 1) res = res * b;
    b = b * b;
    p >>= 1;
  }
  return res;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long tt, n;
  cin >> tt;
  string s;
  string t = "abacaba";
  while (tt--) {
    cin >> n >> s;
    string ans;
    for (long long i = 0; i < n - 6; i++) {
      string st = s;
      bool ok = true;
      for (long long j = 0; j < 7; j++) {
        if (st[i + j] == '?')
          st[i + j] = t[j];
        else
          ok &= st[i + j] == t[j];
      }
      for (long long j = 0; j < n; j++) {
        if (st[j] == '?') st[j] = 'z';
      }
      long long cnt = 0;
      for (long long j = 0; j < n - 6; j++) {
        bool check = true;
        for (long long k = 0; k < 7; k++) {
          check &= st[j + k] == t[k];
        }
        cnt += check;
      }
      ok &= cnt == 1;
      if (ok) ans = st;
    }
    if (ans.size())
      cout << "YES" << '\n' << ans << '\n';
    else
      cout << "NO" << '\n';
  }
  return 0;
}
