#include<bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    cin>>t;
    while (t--)
    {
        /* code */
        int a,b;
        cin>>a>>b;
        string s;
        cin>>s;
        int L=0,R=0,U=0,D=0;
        for(auto &ch:s)
        {
            if(ch=='L')L+=1;
            if(ch=='R')R+=1;
            if(ch=='U')U+=1;
            if(ch=='D')D+=1;
        }
        if(a==0)
        {
            if(b>0)
            {
                if(U>=(b))
                {
                    cout<<"YES"<<"\n";
                }
                else cout<<"NO"<<"\n";
            }
            if(b<0)
            {
                if(D>=abs(b))
                {
                    cout<<"YES"<<"\n";
                }
                else cout<<"NO"<<"\n";
            }
        }
        if(b==0)
        {
            if(a>0)
            {
                if(R>=(a))
                {
                    cout<<"YES"<<"\n";
                }
                else cout<<"NO"<<"\n";
            }
            if(a<0)
            {
                if(L>=abs(a))
                {
                    cout<<"YES"<<"\n";
                }
                else cout<<"NO"<<"\n";
            }
        }
        if(a>0 && b>0)
        {
            if(R>=a && U>=b)cout<<"YES"<<"\n";
            else cout<<"NO"<<"\n";
        }
        if(a<0 && b>0)
        {
            if(L>=abs(a) && U>=b)cout<<"YES"<<"\n";
            else cout<<"NO"<<"\n";
        }
        if(a<0 && b<0)
        {
            if(L>=abs(a)&& D>=abs(b))cout<<"YES"<<"\n";
            else cout<<"NO"<<"\n";
        }
        if(a>0 && b<0)
        {
            if(R>=a && D>=abs(b))cout<<"YES"<<"\n";
            else cout<<"NO"<<"\n";
        }
    }
    return 0;
    
}