#include <bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int t;
    cin >> t;
    while(t --) {
        int n;
        cin >> n;

        string s;
        cin >> s;

        bool good = true;
        for(int i = 0; i < n; ++ i) {
            if(s[i] != 'W') {
                good = false;
            }
        }

        if(good && n % 2 != 0) {
            cout << "NO\n";
        } else {
            cout << "YES\n";
        }
    }
}