#include <bits/stdc++.h>

using namespace std;



int main(){
	int t;
	cin>>t;

	while(t--){
		int px , py;
		cin>>px>>py;
		int r = 0 , l = 0 , u = 0 , d = 0;
		string x;
		cin>>x;
		for(char c:x){
			if(c == 'L')	l++;
			else if(c == 'R')	r++;
			else if(c == 'U')	u++;
			else	d++;
		}
		
		bool fine = true;

		if(px>0){
			if(r<px)	fine = false;
		}
		else if(px<0){
			px = abs(px);
			if(l<px)	fine = false;
		}

		if(fine){
			if(py>0){
				if(u<py)	fine = false;
			}
			else if(py<0){
				py = abs(py);
				if(d<py)	fine = false;
			}
		}

		if(fine)	cout<<"YES"<<endl;
		else	cout<<"NO"<<endl;

	}

		
	return 0;
}