#include <bits/stdc++.h>
using namespace std;
long long int i, j, n;
bool check(string s1, string s2) {
  long long int cnt = 0;
  for (long long int ii = 0; ii < n - 6; ii++) {
    long long int c = 0;
    for (long long int jj = ii; jj < ii + 7; jj++) {
      if (s1[jj] == s2[jj - ii]) c++;
    }
    if (c == 7) cnt++;
  }
  if (cnt > 1) return 0;
  return 1;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long int t;
  cin >> t;
  while (t--) {
    cin >> n;
    string s;
    cin >> s;
    string second = s;
    string tt = "abacaba";
    bool f = 0;
    for (i = 0; i < n - 6; i++) {
      bool flag = 0;
      for (j = i; j < i + 7; j++) {
        if (s[j] == '?') {
          s[j] = tt[j - i];
        } else if (s[j] != tt[j - i]) {
          flag = 1;
          break;
        }
      }
      if (!flag) {
        for (j = 0; j < n; j++) {
          if (s[j] == '?') s[j] = 'z';
        }
        if (check(s, tt)) {
          f = 1;
          break;
        }
      } else
        s = second;
    }
    if (!f)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      cout << s << endl;
    }
  }
  return 0;
}
