#include <bits/stdc++.h>
using namespace std;
int n;
char ch[110];
void work() {
  cin >> n;
  cin >> ch;
  for (int i = 0; i <= n / 2; i++) {
    int t = ch[i] - ch[n - 1 - i];
    if (t != 0 && t != 2 && t != -2) {
      cout << "NO\n";
      return;
    }
  }
  cout << "YES\n";
}
void init() {}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int T;
  cin >> T;
  while (T--) {
    init();
    work();
  }
  return 0;
}
