#include <bits/stdc++.h>
using namespace std;
const string target = "abacaba";
bool isok(string s) {
  int cnt = 0;
  for (int i = 0; i < s.size() - 6; i++)
    if (s.substr(i, 7) == target) cnt++;
  return cnt == 1;
}
void solve() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  string old = string(7, ' ');
  for (int i = 0; i < n - 6; i++) {
    bool ok = true;
    for (int j = 0; j < 7; j++) {
      old[j] = s[i + j];
      if (s[i + j] == '?') s[i + j] = target[j];
    }
    if (isok(s)) {
      for (int i = 0; i < n; i++)
        if (s[i] == '?') s[i] = 'z';
      puts("YES");
      cout << s << endl;
      return;
    }
    for (int j = 0; j < 7; j++) s[i + j] = old[j];
  }
  puts("NO");
}
int main() {
  int tt;
  cin >> tt;
  while (tt--) solve();
}
