#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n / 2; i++) {
    if (s[i] == s[n - i - 1]) continue;
    if (s[i] == (char)(s[n - i - 1] + 2) || s[i] == (char)(s[n - i - 1] - 2))
      continue;
    cout << "NO"
         << "\n";
    return;
  }
  cout << "YES"
       << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int q;
  cin >> q;
  while (q--) solve();
  return 0;
}
