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


int32_t main()
{

	int t;
	cin >> t;
	int a, b, d, l, u, r, cor, len;
	string s;
	while (t--)
	{
		d = l = u = r = 0;
		cin >> a >> b;
		cin >> s;
		len = s.length();
		if (a >= 0 && b >= 0)
			cor = 1;
		else if (a <= 0 && b >= 0)
			cor = 2;
		else if (a <= 0 && b <= 0)
			cor = 3;
		else if (a >= 0 && b <= 0)
			cor = 4;
		if (a < 0) a = a * -1;
		if (b < 0) b = b * -1;
		for (int i = 0; i < len ; i++)
		{
			if (s[i] == 'R')
				r++;
			else if (s[i] == 'U')
				u++;
			else if (s[i] == 'L')
				l++;
			else if (s[i] == 'D')
				d++;
		}
		if (cor == 1)
		{
			if (r >= a && u >= b)
				cout << "YES\n";
			else cout << "NO\n";

		}
		if (cor == 2)
		{
			if (l >= a && u >= b)
				cout << "YES\n";
			else cout << "NO\n";

		}
		if (cor == 3)
		{
			if (l >= a && d >= b)
				cout << "YES\n";
			else cout << "NO\n";

		}
		if (cor == 4)
		{
			if (r >= a && d >= b)
				cout << "YES\n";
			else cout << "NO\n";

		}
	}

	return 0;
}