#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, k;
  cin >> n;
  string s;
  cin >> s;
  long long c = 0;
  for (int i = 0; i < n; i++) {
    if (n - i >= 7) {
      string f;
      for (int j = i; j <= i + 6; j++) {
        f += s[j];
      }
      if (f == "abacaba") c++;
    }
  }
  if (c > 1) {
    cout << "No"
         << "\n";
    return;
  } else if (c == 1) {
    cout << "Yes"
         << "\n";
    for (int i = 0; i < n; i++) {
      if (s[i] == '?')
        cout << "z";
      else
        cout << s[i];
    }
    cout << "\n";
  } else {
    for (int i = 0; i <= n - 7; i++) {
      string f;
      for (int j = 0; j <= i - 1; j++) {
        if (s[j] != '?')
          f += s[j];
        else
          f += "z";
      }
      f += "abacaba";
      for (int j = i + 7; j <= n - 1; j++) {
        if (s[j] != '?')
          f += s[j];
        else
          f += "z";
      }
      int flag = 0;
      for (int j = 0; j <= n - 1; j++) {
        if (f[j] != s[j]) {
          if (s[j] != '?') {
            flag = 1;
            break;
          }
        }
      }
      if (flag == 0) {
        int flag2 = 0;
        for (int j = 0; j < n; j++) {
          if (n - j >= 7) {
            string l;
            for (int k = j; k <= j + 6; k++) {
              l += f[k];
            }
            if (l == "abacaba") flag2++;
          }
        }
        if (flag2 == 1) {
          cout << "Yes"
               << "\n";
          for (int j = 0; j <= n - 1; j++) {
            cout << f[j];
          }
          cout << "\n";
          return;
        }
      }
    }
    cout << "No"
         << "\n";
    return;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t, n;
  cin >> t;
  while (t--) {
    solve();
  }
}
