#include<bits/stdc++.h>
using namespace std;
void solve()
{
    int x,y;
    cin>>x>>y;
    string s;
    cin>>s;
    int n=s.size();
    vector<int>mp(4);
    for(int i=0;i<n;i++)
    {
        if(s[i]=='U') {
            mp[1]++;
        }
        if(s[i]=='D'){
            mp[3]++;
        }
        if(s[i]=='R')
            mp[0]++;
        if(s[i]=='L')
            mp[2]++;
    }
    if(x>=0 && y>=0)
    {
        if(mp[0]>=x && mp[1]>=y) cout<<"YES"<<endl;
        else{
        cout<<"NO"<<endl;
    }
    }
    else if(x<=0 && y>=0)
    {
        if(mp[2]>=(-x) && mp[1]>=y) cout<<"YES"<<endl;
        else{
        cout<<"NO"<<endl;
    }
    }
    else if(x<=0 && y<=0){
        if(mp[2]>=(-x) && mp[3]>=(-y)) cout<<"YES"<<endl;
        else{
        cout<<"NO"<<endl;
    }
    }
    else if(x>=0 && y<=0){
        if(mp[0]>=x && mp[3]>=(-y)) cout<<"YES"<<endl;
        else{
        cout<<"NO"<<endl;
    }
    }
    else{
        cout<<"NO"<<endl;
    }
}
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        solve();
    }
    return 0;
}