#include <bits/stdc++.h> #define int long long #define MULTITEST true using namespace std; void solve () { int N; cin >>N; string buffer; cin >> buffer; int w = 0; for (int i = 0; i < N; i ++) if (buffer[i] == 'W') w ++; if ((w % 2) == 0) cout << "YES\n"; else cout << "NO\n"; } signed main() { ios_base::sync_with_stdio(0); cin.tie(NULL); cout.precision(30); int T = 1; if (MULTITEST) cin >> T; for (int t = 0; t < T; t ++) solve(); }