#include<bits/stdc++.h>

#define int long long
#define pb push_back
#define um unordered_map
#define us unordered_set
#define mod 1000000007
#define MAXN 100015
#define all(x) x.begin(),x.end()

using namespace std;

void bruh(){
	int x,y;cin>>x>>y;
	string s;cin>>s;
	int L=0,R=0,U=0,D=0;
	for(char i:s){
		if(i == 'U') U++;
		else if(i == 'D') D++;
		else if(i == 'L') L++;
		else R++;
	}
	
	if((x > 0 && R < x) || (x < 0 && L < abs(x)) || (y > 0 && U < y) || (y < 0 && D < abs(y))){
		cout << "NO" << endl;
	} 
	else cout << "YES" << endl;
}

int32_t main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int t;
	cin>>t;
	while(t--){
		bruh();
	}
	return 0;
}
