#include <bits/stdc++.h>
using namespace std;
int main() {
  long long tt;
  cin >> tt;
  while (tt--) {
    long long n;
    cin >> n;
    string second, S = "abacaba";
    cin >> second;
    vector<long long> mp, cp;
    for (long long i = 0; i < n - 6; i++) {
      long long p = 1;
      for (long long j = i; j < i + 7; j++) {
        if (second[j] != '?' && second[j] != S[j - i]) {
          p = 0;
          break;
        }
        if (second[j] == '?') p = 2;
      }
      if (p == 2)
        mp.push_back(i);
      else if (p == 1)
        cp.push_back(i);
    }
    if (cp.size() == 1) {
      cout << "YES\n";
      for (long long i = 0; i < n; i++)
        if (second[i] == '?') second[i] = 'd';
      cout << second << "\n";
    } else if (cp.size() > 1)
      cout << "NO\n";
    else if (cp.empty() && mp.size() == 0)
      cout << "NO\n";
    else {
      long long poss = 0, idx;
      for (long long i = 0; i < mp.size(); i++) {
        string t = second;
        long long id = mp[i];
        for (long long j = id; j < id + 7; j++) t[j] = S[j - id];
        long long cc = 0;
        for (long long x = 0; x < n - 6; x++) {
          long long pp = 1;
          for (long long j = x; j < x + 7; j++) {
            if (t[j] != S[j - x]) {
              pp = 0;
              break;
            }
          }
          if (pp) cc++;
        }
        if (cc == 1) {
          poss = 1;
          idx = id;
          break;
        }
      }
      if (poss) {
        cout << "YES\n";
        for (long long i = idx; i < idx + 7; i++) second[i] = S[i - idx];
        for (long long i = 0; i < n; i++)
          if (second[i] == '?') second[i] = 'd';
        cout << second << "\n";
      } else
        cout << "NO\n";
    }
  }
}
