#include <bits/stdc++.h>

using namespace std;

int main()
{

   int t;
   cin>>t;


   while(t--)
   {
       int n,m;
       cin>>n>>m;


       string s;
       cin>>s;

       int len = s.size();

       int u=0,d=0,r=0,l=0;

       for(int i=0;i<len;++i)
       {

           if(s[i]=='U')
            ++u;
           else if(s[i]=='D')
            ++d;
           else if(s[i]=='R')
            ++r;
           else
            ++l;

       }

     //  cout<<u<<" D "<<d<<" r "<<r<<" l "<<l<<endl;


       if(n>=0)
       {
           if(r>=n)
           {

               if(m>=0)
               {
                   if(u>=m)
                   {
                       cout<<"YES"<<endl;
                   }
                   else
                    cout<<"NO"<<endl;

               }
               else
               {
                   if(d>=abs(m))
                   {
                       cout<<"YES"<<endl;
                   }
                   else
                    cout<<"NO"<<endl;




               }




           }
           else
            cout<<"NO"<<endl;



       }
       else
       {

           if(l>=abs(n))
           {

               if(m>=0)
               {
                   if(u>=m)
                   {
                       cout<<"YES"<<endl;
                   }
                   else
                    cout<<"NO"<<endl;

               }
               else
               {
                   if(d>=abs(m))
                   {
                       cout<<"YES"<<endl;
                   }
                   else
                    cout<<"NO"<<endl;




               }




           }
           else
            cout<<"NO"<<endl;


       }





   }



    return 0;
}
