#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
const long long INF = 1e18;
const int MAX = 2e5 + 5, N = 7e2 + 5;
const long long mod = 1e9 + 7;
const int lim = 1 << 20;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    string s;
    cin >> n >> s;
    int i = 0, j = n - 1;
    bool ok = true;
    while (i <= j) {
      if (s[i] != s[j]) {
        if (s[i] > s[j]) swap(s[i], s[j]);
        if (s[i] == 'z' || s[j] == 'a') {
          ok = false;
          break;
        }
        s[i]++;
        s[j]--;
        if (s[i] != s[j]) {
          ok = false;
          break;
        }
      }
      i++, j--;
    }
    if (ok)
      cout << "YES"
           << "\n";
    else
      cout << "NO"
           << "\n";
  }
  return 0;
}
