#include <bits/stdc++.h>

using namespace std;
using ll = int64_t;

void solve() {
	int n;
	cin >> n;
	string s;
	cin >> s;
	int wc = 0;
	int rc = 0;
	for(int i = 0; i < n; ++i) {
		if(s[i] == 'R') ++rc;
		if(s[i] == 'W') ++wc;
	}
	if(wc % 2 == 0) {
		cout << "YES\n";
	} else {
		cout << "NO\n";
	}
}

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

	int t = 1;
	cin >> t;
	for(int i = 0; i < t; ++i) {
		solve();
	}

	return 0;
}