#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    string s;
    cin >> n;
    cin >> s;
    bool flag = true, x;
    for (int i = 0; i < n / 2; i++) {
      if ((int)s[n - i - 1] - (int)s[i] == 2 ||
          (int)s[n - i - 1] - (int)s[i] == 0 ||
          (int)s[n - i - 1] - (int)s[i] == -2)
        x = true;
      else
        flag = false;
    }
    if (flag == true)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
