#include <bits/stdc++.h>
using namespace std;
string pattern = "abacaba";
bool judge(string str) {
  for (int i = 0; i < 7; i++) {
    if (str[i] != '?' && str[i] != pattern[i]) {
      return false;
    }
  }
  return true;
}
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    string str;
    int n;
    cin >> n >> str;
    bool flag = false;
    int cnt = 0;
    for (int j = 0; j <= str.size() - 7; j++) {
      if (str.substr(j, 7) == pattern) {
        cnt++;
      }
    }
    if (cnt > 1) {
      flag = false;
      cout << "NO" << endl;
    } else if (cnt == 1) {
      for (int i = 0; i < str.size(); i++) {
        if (str[i] == '?') {
          str[i] = 'g';
        }
      }
      cout << "YES" << endl;
      cout << str << endl;
    } else {
      for (int i = 0; i <= str.size() - 7; i++) {
        string ori = str;
        if (judge(ori.substr(i, 7))) {
          for (int j = i; j < i + 7; j++) {
            ori[j] = pattern[j - i];
          }
          int c = 0;
          for (int j = 0; j <= ori.size() - 7; j++) {
            if (ori.substr(j, 7) == pattern) {
              c++;
            }
          }
          if (c == 1) {
            flag = true;
            for (int k = 0; k < ori.size(); k++) {
              if (ori[k] == '?') {
                ori[k] = 'g';
              }
            }
            cout << "YES" << endl;
            cout << ori << endl;
          }
        }
        if (flag) {
          break;
        }
      }
      if (!flag) {
        cout << "NO" << endl;
      }
    }
  }
  return 0;
}
