#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e2 + 10;
char s[maxn];
int check(char a, char b) {
  if (a == 'a') return b == 'a' || b == 'c';
  if (a == 'z') return b == 'z' || b == 'x';
  if (b == 'a') return a == 'a' || a == 'c';
  if (b == 'z') return a == 'z' || a == 'x';
  return fabs(a - b) == 0 || fabs(a - b) == 2;
}
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n;
    scanf("%d", &n);
    scanf("%s", s);
    int len = strlen(s), flag = 1;
    for (int i = 0; i < len / 2 && flag; i++)
      flag = check(s[i], s[len - i - 1]);
    if (flag)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
