#include <bits/stdc++.h>
using namespace std;
vector<bool> primes(100006, true);
void sieve() {
  for (long long int i = 3; i <= 100006; i += 2) {
    primes[i] = 1;
  }
  for (long long int i = 3; i <= 100006; i++) {
    if (primes[i] == 1) {
      for (long long int j = i * i; j <= 100006; j += i) {
        primes[j] = 0;
      }
    }
  }
  primes[2] = 1;
  primes[0] = primes[1] = 0;
}
long long int recpow(long long int x, long long int n) {
  if (n == 0)
    return 1;
  else if (n % 2 == 0)
    return recpow((x * x), n / 2);
  else
    return (x * recpow((x * x), (n - 1) / 2));
}
long long int sam(string b, string c) {
  long long int f = 0;
  for (long long int i = 0; i < b.size(); i++) {
    if (b[i] != c[i]) return 0;
  }
  return 1;
}
long long int check(string s) {
  long long int q = 0;
  string a1 = "abacaba";
  for (long long int i = 0; i < s.size(); i++) {
    if (i + 7 > s.size()) break;
    string s1;
    s1 = s.substr(i, 7);
    if (sam(s1, a1)) q++;
  }
  if (q == 1) return 1;
  return 0;
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    string a = "abacaba";
    long long int q = 0;
    string s;
    cin >> s;
    string s1 = s;
    long long int ans = 0;
    for (long long int i = 0; i < s.size(); i++) {
      if (i + 7 > s.size()) break;
      string s2;
      s2 = s.substr(i, 7);
      if (sam(s2, a)) q++;
    }
    if (q == 1) {
      cout << "YES\n";
      for (long long int i = 0; i < s.size(); i++) {
        if (s[i] == '?') s[i] = 'd';
      }
      cout << s << "\n";
    } else if (q == 2) {
      cout << "NO\n";
    } else {
      for (long long int i = 0; i < s.size(); i++) {
        string s3 = s;
        if (i + 7 > s.size()) break;
        for (long long int j = 0; j < 7; j++) {
          if (s3[i + j] == '?') s3[i + j] = a[j];
        }
        for (long long int h = 0; h < s3.size(); h++) {
          if (s3[h] == '?') s3[h] = 'd';
        }
        if (check(s3)) {
          cout << "YES\n";
          ans = 1;
          cout << s3 << "\n";
          break;
        }
      }
      if (ans == 0) cout << "NO\n";
    }
  }
}
