#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  while (a && b) a > b ? a %= b : b %= a;
  return a + b;
}
const int mod = 1e9 + 7;
const int N = 200001;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    string s;
    cin >> s;
    string chef = "aba";
    string kapa = "???";
    int count = 0;
    int flag = 0;
    for (int i = 3; i < n - 3; i++) {
      string left, right;
      left = s.substr(i - 3, 3);
      right = s.substr(i + 1, 3);
      if (left == chef && right == chef) {
        if (s[i] == 'c') {
          count++;
        }
      }
    }
    if (count > 1) {
      cout << "No"
           << "\n";
      continue;
    }
    if (count == 1) {
      for (int i = 0; i < s.length(); i++) {
        if (s[i] == '?') s[i] = 'z';
      }
      cout << "Yes"
           << "\n";
      cout << s << "\n";
      continue;
    }
    if (count == 0) {
      for (int i = 3; i < n - 3; i++) {
        string left, right;
        left = s.substr(i - 3, 3);
        right = s.substr(i + 1, 3);
        if (s[i] == 'c' || s[i] == '?') {
          if ((left[0] == 'a' || left[0] == '?') &&
              (left[1] == 'b' || left[1] == '?') &&
              (left[2] == 'a' || left[2] == '?')) {
            if ((right[0] == 'a' || right[0] == '?') &&
                (right[1] == 'b' || right[1] == '?') &&
                (right[2] == 'a' || right[2] == '?')) {
              string temp = s;
              if (flag == 0) {
                if (left[0] == '?') s[i - 3] = 'a';
                if (left[1] == '?') s[i - 2] = 'b';
                if (left[2] == '?') s[i - 1] = 'a';
                if (right[0] == '?') s[i + 1] = 'a';
                if (right[1] == '?') s[i + 2] = 'b';
                if (right[2] == '?') s[i + 3] = 'a';
                s[i] = 'c';
                int capa = 0;
                for (int i = 3; i < n - 3; i++) {
                  string left, right;
                  left = s.substr(i - 3, 3);
                  right = s.substr(i + 1, 3);
                  if (left == chef && right == chef) {
                    if (s[i] == 'c') {
                      capa++;
                    }
                  }
                }
                if (capa == 1) {
                  flag++;
                  break;
                }
                if (capa > 1) {
                  s = temp;
                }
              } else {
                break;
              }
            }
          }
        }
      }
      if (flag == 0) {
        cout << "No"
             << "\n";
        continue;
      } else {
        cout << "Yes"
             << "\n";
        for (int i = 0; i < s.length(); i++) {
          if (s[i] == '?') s[i] = 'z';
        }
        cout << s << "\n";
        continue;
      }
    }
  }
}
