#include <bits/stdc++.h>
using namespace std;
bool comparison(long long a, long long b) { return a > b; }
int solve(string s) {
  int c = 0;
  string t = "abacaba";
  int n = (int)s.size();
  for (int i = 0; i < n; i++) {
    string x = "";
    if (n < i + 7) break;
    if (s[i] == 'a')
      for (int j = i; j < i + 7; j++) {
        x += s[j];
      }
    if (x == t) c++;
    if (c > 1) break;
  }
  return c;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    string s;
    cin >> s;
    int c = 0;
    string t = "abacaba";
    for (int i = 0; i < n; i++) {
      string x = "";
      if (n < i + 7) break;
      if (s[i] == 'a')
        for (int j = i; j < i + 7; j++) {
          x += s[j];
        }
      if (x == t) c++;
      if (c > 1) break;
    }
    if (c > 1) {
      cout << "NO" << endl;
    } else if (c == 1) {
      for (int i = 0; i < n; i++) {
        if (s[i] == '?') s[i] = 'q';
      }
      cout << "YES" << endl << s << endl;
    } else {
      string s1 = s;
      int y = 0;
      for (int i = 0; i < n; i++) {
        int x = 0;
        if (n < i + 7) break;
        int k = 0;
        for (int j = i; j < i + 7; j++) {
          if (s[j] == '?') {
            x++;
            s1[j] = t[k];
          } else if (s1[j] == t[k])
            x++;
          k++;
        }
        if (x == 7 && solve(s1) == 1) {
          y = 1;
          break;
        } else
          s1 = s;
      }
      for (int i = 0; i < n; i++) {
        if (s1[i] == '?') s1[i] = 'q';
      }
      if (y) {
        cout << "YES" << endl << s1 << endl;
      } else {
        cout << "NO" << endl;
      }
    }
  }
}
