#include <bits/stdc++.h>

using namespace std;
#define ll long long int
#define pb push_back
#define endl "\n"

int main() {

    //forItachiOfTheLeaf
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    ll t;
    cin>>t;
    while(t--){
    	ll x , y;
    	cin>>x>>y;
    	string s;
    	cin>>s;
    	ll u=0,d=0,l=0,r=0;
    	ll i;
    	for(i=0;i<s.length();i++){
    		if(s[i]=='R'){
    			r++;
    		}
    		else if(s[i]=='L'){
    			l++;
    		}
    		else if(s[i]=='U'){
    			u++;
    		}
    		else{
    			d++;
    		}
    	}
    	bool con = true;
    	if(x>=0){
    		if(r<x){
    			con = false;
    		}
    	}
    	else{
    		if(abs(x)>l){
    			con = false;
    		}
    	}
    	if(y>=0){
    		if(u<y){
    			con = false;
    		}
    	}
    	else{
    		if(abs(y)>d){
    			con = false;
    		}
    	}
    	if(con == false){
    		cout<<"NO"<<endl;
    	}
    	else{
    		cout<<"YES"<<endl;
    	}
    }

}