#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, flag = 0, cnt = 0;
    cin >> n;
    string s, p = "abacaba", ss = s;
    cin >> s;
    for (int i = 0; i <= n - 7; i++) {
      if (s[i] == 'a') {
        int j;
        for (j = 1; j <= 6; j++) {
          if (s[i + j] == p[j])
            continue;
          else
            break;
        }
        if (j == 7) {
          cnt++;
        }
      }
    }
    if (cnt >= 2) {
      cout << "NO" << endl;
      continue;
    }
    if (cnt == 1) {
      cout << "YES" << endl;
      for (int i = 0; i <= n - 1; i++)
        if (s[i] == '?') s[i] = 'z';
      cout << s << endl;
      continue;
    } else {
      for (int i = 0; i <= n - 1 - 6; i++) {
        ss = s;
        cnt = 0;
        if (s[i] == 'a' || s[i] == '?') {
          int j;
          for (j = 1; j <= 6; j++) {
            if (s[i + j] == p[j] || s[i + j] == '?') {
              continue;
            } else
              break;
          }
          if (j == 7) {
            for (int j = 1; j <= 6; j++)
              if (ss[i + j] == '?') ss[i + j] = p[j];
            ss[i] = 'a';
            for (int i = 0; i <= n - 1; i++)
              if (ss[i] == '?') ss[i] = 'z';
            for (int i = 0; i <= n - 7; i++) {
              if (ss[i] == 'a') {
                int j;
                for (j = 1; j <= 6; j++) {
                  if (ss[i + j] == p[j])
                    continue;
                  else
                    break;
                }
                if (j == 7) {
                  cnt++;
                }
              }
            }
            if (cnt == 1) {
              cout << "YES" << endl;
              cout << ss << endl;
              flag = 1;
              break;
            } else {
              continue;
            }
          }
        }
      }
      if (flag == 0) cout << "NO" << endl;
    }
  }
}
