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

#define fo(i, z, n) for (int i = z; i < n; i++)
#define ll long long
#define deb(x) cout << #x << "=" << x << endl
#define pb push_back
#define mp make_pair
#define all(x) x.begin(), x.end()
typedef vector<int> vi;
typedef vector<ll> vl;

int main()
{
#ifndef ONLINE_JUDGE
	freopen("D:/vscode/io/input.txt", "r", stdin);
	freopen("D:/vscode/io/output.txt", "w", stdout);
#endif
	ios_base::sync_with_stdio(false), cin.tie(NULL);
	int t;
	cin >> t;
	while (t--)
	{
		ll x, y;
		cin >> x >> y;
		string s, ans = "LRUD";
		cin >> s;
		ll l = 0, r = 0, u = 0, d = 0;

		if (x >= 0 && y >= 0)
		{  
			fo(i, 0, s.length())
			{
				if (s[i] == ans[1])
					r++;
				if (s[i] == ans[2])
					u++;
			}
			if (r >= x && u >= y)
				cout << "YES" << endl;
			else
				cout << "NO" << endl;
		}
		if (x < 0 && y >= 0)
		{   
			fo(i, 0, s.length())
			{
				if (s[i] == ans[0])
					l++;
				if (s[i] == ans[2])
					u++;
			}
			if (l >= abs(x) && u >= y)
				cout << "YES" << endl;
			else
				cout << "NO" << endl;
		}
		if (x < 0 && y <0)
		{   
			fo(i, 0, s.length())
			{
				if (s[i] == ans[0])
					l++;
				if (s[i] == ans[3])
					d++;
			}
			if (l >= abs(x) && d >= abs(y))
				cout << "YES" << endl;
			else
				cout << "NO" << endl;
		}
		if ((x >= 0 && y < 0))
		{      
			fo(i, 0, s.length())
			{
				if (s[i] == ans[1])
					r++;
				if (s[i] == ans[3])
					d++;
			}
			if (r >= x && d >= abs(y))
				cout << "YES" << endl;
			else
				cout << "NO" << endl;
		}
	}
	return 0;
}
