#include<bits/stdc++.h>
 
#define ll long long int
#define pb push_back
#define fi first
#define se second
#define forr for(int i=0;i<n;i++)
#define inn int n; cin>>n;
#define innt int t; cin>>t;
 
using namespace std;
 
vector<bool> isprime(100000000,true);
int a[8000000];
 ll checkd(ll d,ll n){
 	while(n>0){
 		int num=n%10;
 		if(num==d)
 		return true;
 		n/=10;
	 }
	 return false;
 }
 int main()
    {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    ll t;
    cin>>t;
    while(t--){
    ll u=0,d=0,r=0,l=0;
    ll a,b;
    cin>>a>>b;
    string s;
    cin>>s;
    for(int i=0;i<s.length();i++){
    	if(s[i]=='U')
    	u++;
    	else if(s[i]=='L')
    	l++;
    	else if(s[i]=='D')
    	d++;
		else if(s[i]=='R')
    	r++;	
	}
	int xaxis=0,yaxis=0;
	if(a<0 && l>=abs(a))
	xaxis=1;
	else if(a==0)
	xaxis=1;
	else if(a>0 && r>=a)
	xaxis=1;
	
	if(b<0 && d>=abs(b))
	yaxis=1;
	else if(b==0)
	yaxis=1;
	else if(b>0 && u>=b)
	yaxis=1;
 
    if(xaxis==1 && yaxis==1)
    cout<<"YES"<<endl;
    else
    cout<<"NO"<<endl;
}
return 0;
 
    }