#include <bits/stdc++.h>
using namespace std;

const int nax = 2e5 + 5;
const int pax = 1e5 + 5;
const int INF = 2e9;
using ll = long long;
using pd = pair<long double, long double>;
using pi = pair<int, int>;
using pll = pair<ll, ll>;
const long double eps = 1e-7;
const int MOD = 1e9 + 7;

int main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int t, px, py;
	string s;
	cin >> t;
	//unordered_map<char, pi> dir = { {'L', {-1, 0}}, {'R', {1, 0}}, {'U', {0, 1}}, {'D', {0, -1}} };
	while (t--) {
		int mxx = 0, mnx = 0, mny = 0, mxy = 0;
		//int cx = 0, cy = 0;
		cin >> px >> py >> s;
		for (int i = 0; i < s.length(); i++) {
			if (s[i] == 'L') {
				mnx--;
			}
			else if (s[i] == 'R') {
				mxx++;
			}
			else if (s[i] == 'U') {
				mxy++;
			}
			else {
				mny--;
			}
		}
		if ((px >= mnx) && (px <= mxx) && (py >= mny) && (py <= mxy)) {
			cout << "YES\n";
		}
		else cout << "NO\n";
	}
	return 0;
}
