#include <bits/stdc++.h>
using namespace std;
void one_case() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  string line = "abacaba";
  for (int start = 0; start + line.size() <= n; ++start) {
    auto current = s;
    int ok = 1;
    for (int pos = 0; pos < line.size() && ok; ++pos) {
      ok &= current[start + pos] == line[pos] || current[start + pos] == '?';
      current[start + pos] = line[pos];
    }
    if (!ok) {
      continue;
    }
    for (int i = 0; i < n; ++i) {
      if (current[i] == '?') {
        current[i] = 'd';
      }
    }
    int count = 0;
    for (int i = 0; i + line.size() <= n; ++i) {
      int pos = 0;
      while (pos < line.size()) {
        if (line[pos] != current[i + pos]) {
          break;
        }
        ++pos;
      }
      count += pos == line.size();
    }
    if (count == 1) {
      cout << "YES\n";
      cout << current << "\n";
      return;
    }
  }
  cout << "NO\n";
}
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int t = 1;
  cin >> t;
  while (t--) one_case();
  return 0;
}
