#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    string s;
    cin >> s;
    int l = s.length();
    bool fl = false;
    for (int i = 0; i < l / 2; i++) {
      if (s[i] == s[l - i - 1]) {
        continue;
      } else if (s[i] == 'a') {
        if (abs(s[i] - s[l - i - 1]) == 2)
          continue;
        else {
          fl = true;
          break;
        }
      } else if (s[i] == 'z') {
        if (abs(s[i] - s[l - i - 1]) == 2)
          continue;
        else {
          fl = true;
          break;
        }
      } else {
        if (abs(s[i] - s[l - i - 1]) == 2)
          continue;
        else {
          fl = true;
          break;
        }
      }
    }
    if (fl)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
