#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    string s;
    cin >> s;
    string s1 = "abacaba";
    string s2 = "???????";
    bool b;
    int ind;
    int rep = 0;
    for (int i = 0; i < s.length() - 6; i++) {
      b = true;
      for (int j = 0; j <= 6; j++) {
        if (s[i + j] != s1[j]) {
          b = false;
          break;
        }
      }
      if (b) rep++;
    }
    if (rep > 1) {
      cout << "NO" << endl;
      continue;
    }
    if (rep == 1) {
      cout << "YES" << endl;
      for (int i = 0; i < s.length(); i++)
        if (s[i] == '?') s[i] = 'x';
      cout << s << endl;
      continue;
    } else {
      for (int i = 0; i < s.length() - 6; i++) {
        b = true;
        for (int j = 0; j <= 6; j++) {
          if (s[i + j] != s1[j] and s[i + j] != s2[j]) {
            b = false;
            break;
          }
        }
        if (b) {
          break;
        }
      }
      if (!b)
        cout << "NO" << endl;
      else {
        bool final = false;
        string temp;
        for (int i = 0; i < s.length() - 6; i++) {
          b = true;
          for (int j = 0; j <= 6; j++) {
            if (s[i + j] != s1[j] and s[i + j] != s2[j]) {
              b = false;
              break;
            }
          }
          if (b) {
            temp = s;
            for (int j = 0; j <= 6; j++) temp[i + j] = s1[j];
            int no = 0;
            bool v;
            for (int j = 0; j < n; j++) {
              v = true;
              for (int k = 0; k <= 6; k++) {
                if (temp[j + k] != s1[k]) {
                  v = false;
                  break;
                }
              }
              if (v) no++;
            }
            if (no == 1) {
              s = temp;
              final = true;
              break;
            }
          }
        }
        if (final) {
          cout << "YES" << endl;
          for (int i = 0; i < n; i++)
            if (s[i] == '?') s[i] = 'x';
          cout << s << endl;
        } else
          cout << "NO" << endl;
      }
    }
  }
  return 0;
}
