#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
      int t;
       cin>>t;
        while(t--){
            int n,m,i,l=0,r=0,u=0,d=0;
            cin>>n>>m;
            string a;
            cin>>a;
            for(i=0;i<a.size();i++)
            {  if(a[i]=='L')
                l++;
                else if(a[i]=='U')
                u++;
                else if(a[i]=='R')
                    r++;
                else
                    d++;
            }
             if(n>=0&&m>=0)
             {   if(r>=n&&u>=m)
                  cout<<"YES"<<endl;
                 else
                    cout<<"NO"<<endl;
             }
             else if(n>=0&&m<=0)
             {    if(r>=n&&d>=abs(m))
                     cout<<"YES"<<endl;
                 else
                  cout<<"NO"<<endl;
             }
             else if(n<=0&&m>=0){
                    if(l>=abs(n)&&u>=m)
                        cout<<"YES"<<endl;
                    else
                    cout<<"NO"<<endl;
             }
             else{
                if(l>=abs(n)&&d>=abs(m))
                    cout<<"YES"<<endl;
                else
                    cout<<"NO"<<endl;
             }

        }

}
