#include <bits/stdc++.h>
using namespace std;
string T = "abacaba";
int cnt(string s, int n) {
  int cont = 0;
  for (int i = 0; i + 6 < n; i++) {
    if (s.substr(i, 7) == T) cont++;
  }
  return cont;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    string s;
    cin >> s;
    if (s.size() < 7) {
      cout << "N" << endl;
      continue;
    }
    bool F = false;
    for (int i = 0; i + 6 < n; i++) {
      string ss = s;
      bool ok = true;
      for (int j = 0; j < 7; j++) {
        if (ss[i + j] != '?' && ss[i + j] != T[j]) {
          ok = false;
          break;
        }
        ss[i + j] = T[j];
      }
      if (ok == true && cnt(ss, n) == 1) {
        for (int d = 0; d < n; d++) {
          if (ss[d] == '?') ss[d] = 'z';
        }
        F = true;
        cout << "Yes" << endl;
        cout << ss << endl;
        break;
      }
    }
    if (!F) cout << "No" << endl;
  }
  return 0;
}
