#include <bits/stdc++.h>
using namespace std;
const string model = "abacaba";
int how_many(string s, int n) {
  int count = 0;
  for (int i = 0; i <= n - 7; i++)
    if (s.substr(i, 7) == model) count++;
  return count;
}
string output(string s, int n) {
  for (int i = 0; i < n; i++)
    if (s[i] == '?') s[i] = 'x';
  return s;
}
bool check(string s, int n, int i) {
  for (int j = i; j < i + 7; j++)
    if (s[j] == '?') s[j] = model[j - i];
  if (how_many(s, n) == 1)
    return true;
  else
    return false;
}
void solve() {
  int n;
  string s;
  cin >> n >> s;
  int count = how_many(s, n);
  if (count > 1) {
    cout << "NO\n";
    return;
  }
  if (count == 1) {
    cout << "YES\n" << output(s, n) << '\n';
    return;
  }
  int i = 0;
  bool found = false;
  while (i <= n - 7 && !found) {
    found = check(s, n, i);
    i++;
  }
  if (found) {
    i--;
    for (int j = i; j < i + 7; j++)
      if (s[j] == '?') s[j] = model[j - i];
    cout << "YES\n" << output(s, n) << '\n';
    return;
  } else {
    cout << "NO\n";
    return;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  ;
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
