#include<iostream>
#include<sstream>
#include<string>
#include<queue>
#include<map>
#include<set>
#include<vector>
#include<stack>
#include <utility>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<cstring>
#include<iomanip>
#include<time.h>
#define int long long
#define endl '\n'
#define PI acos(-1.0)
#define eps 1e-9
const int INF = 0x3f3f3f3f;
const int N = 1e6+10;
const int maxn = 1e3+10;
using namespace std;

signed main(){
	std::ios::sync_with_stdio(false);
	cin.tie(0),cout.tie(0);
	int t; cin>>t; 
	while(t--){
		int x,y; cin>>x>>y;
		string s; cin>>s;
		int cntu=0,cntd=0,cntl=0,cntr=0;
		for(int i=0;i<=s.length();i++){
			if(s[i]=='U')cntu++;
			if(s[i]=='D')cntd++;
			if(s[i]=='R')cntr++;
			if(s[i]=='L')cntl++;
		}
		int flag=0;
		if(y>=0){
			if(cntu>=y)flag++;
			else{
				cout<<"NO"<<endl;
				continue;
			}
		}
		else if(y<=0){
			if(cntd>=0-y)flag++;
			else{
				cout<<"NO"<<endl;
				continue;
			}
		}
		if(x>=0){
			if(cntr>=x)flag++;
			else{
				cout<<"NO"<<endl;
				continue;
			}
		}
		else if(x<=0){
			if(cntl>=0-x)flag++;
			else{
				cout<<"NO"<<endl;
				continue;
			}
		}
		cout<<"YES"<<endl;
	}
}

