#include <bits/stdc++.h>
using namespace std;
string t = "abacaba";
long long substr(string str) {
  bool flag = false;
  long long c = 0;
  string sub_str = "abacaba";
  for (long long i = 0; i < str.length(); i++) {
    if (str.substr(i, sub_str.length()) == sub_str) {
      c++;
      flag = true;
    }
  }
  return c;
}
bool check(string s, long long index) {
  for (long long i = 0; i < 7; i++) {
    if (s[index + i] == '?')
      s[index + i] = t[i];
    else if (s[index + i] != t[i])
      return false;
  }
  long long cnt = 0;
  long long n = s.size();
  for (long long i = 0; i < n; i++)
    if (s[i] == '?') s[i] = 'd';
  long long ocur = substr(s);
  if (ocur == 1) {
    cout << "YES" << endl;
    cout << s << endl;
    return true;
  }
  return false;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    string s;
    cin >> s;
    bool ok = false;
    for (long long i = 0; i < n - 6; i++) {
      if (check(s, i)) {
        ok = true;
        break;
      }
    }
    if (ok) continue;
    cout << "NO" << endl;
  }
}
