#include <bits/stdc++.h>
using namespace std;
string s, t, str = "abacaba";
int n;
bool check(int x) {
  t = s;
  for (int i = x; i < x + 7; i++) {
    if (t[i] == '?') {
      t[i] = str[i - x];
    } else if (t[i] != str[i - x]) {
      return 0;
    }
  }
  for (int i = 0; i < n; i++) {
    if (t[i] == '?') {
      t[i] = 'd';
    }
  }
  int qwe = 0;
  for (int i = 0; i + 6 < n; i++) {
    bool ok = 0;
    for (int j = i; j < i + 7; j++) {
      if (t[j] != str[j - i]) {
        ok = 1;
      }
    }
    if (ok == 0) {
      qwe += 1;
    }
  }
  return qwe == 1;
}
void solve() {
  cin >> n >> s;
  for (int i = 0; i + 6 < n; i++) {
    if (check(i)) {
      for (int j = 0; j < i; j++) {
        if (s[j] == '?') {
          s[j] = 'd';
        }
      }
      for (int j = i; j < i + 7; j++) {
        if (s[j] == '?') {
          s[j] = str[j - i];
        }
      }
      for (int j = i + 7; j < n; j++) {
        if (s[j] == '?') {
          s[j] = 'd';
        }
      }
      cout << "Yes" << endl << s << endl;
      return;
    }
  }
  puts("No");
}
int main() {
  int test;
  cin >> test;
  while (test--) {
    solve();
  }
}
