#include "bits/stdc++.h" using namespace std; void solve() { int n; cin >> n; string s; cin >> s; int cnt1 = 0; for (int i = 0; i < n; ++i) { if (s[i] == 'W') cnt1++; } if (cnt1 % 2 == 0) { cout << "YES\n"; } else { cout << "NO\n"; } } signed main() { ios::sync_with_stdio(0); cin.tie(0);cout.tie(0); int t; cin >> t; while (t--) solve(); }