#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, i, j, count;
    bool y = true, z = true;
    string s;
    string g = "abacaba";
    cin >> n >> s;
    for (i = 0; i + 6 < n; i++) {
      string x = s;
      z = true;
      for (j = i; j <= i + 6; j++) {
        if (x[j] == '?')
          x[j] = g[j - i];
        else if (x[j] != g[j - i])
          z = false;
      }
      for (int m = 0; m < n; m++) {
        if (x[m] == '?') x[m] = 'z';
      }
      count = 0;
      for (int m = 0; m < n - 6; m++) {
        if (g == x.substr(m, 7)) count++;
      }
      if (z && count == 1) {
        cout << "YES\n" << x << '\n';
        y = false;
        break;
      }
    }
    if (y) cout << "NO\n";
  }
  return 0;
}
