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