#include<bits/stdc++.h>
using namespace std;

void solve()
{
    int px,py;
    cin>>px>>py;
    string s;
    cin>>s;
    int up,down,left,right;
    up=down=left=right=0;
    for(int i=0;i<s.length();i++)
    {
        if(s[i]=='L')
        {
            left++;
        }
        else if(s[i]=='R')
        {
            right++;
        }
        else if(s[i]=='U')
        {
            up++;
        }
        else if(s[i]=='D')
        {
            down++;
        }
    }
    if(px>=0 && py>=0)
    {
        if(right>=abs(px) && up>=abs(py))
        {
            cout<<"YES";
        }
        else 
        {
            cout<<"NO";
        }
    }
    else if(px<=0 && py<=0)
    {
        if(left>=abs(px) && down>=abs(py))
        {
            cout<<"YES";
        }
         else 
        {
            cout<<"NO";
        }
    }
    else if(px>=0 && py<=0)
    {
        if(right>=abs(px) && down>=abs(py))
        {
            cout<<"YES";
        }
         else 
        {
            cout<<"NO";
        }
    }
    else if(px<=0 && py>=0)
    {
        if(left>=abs(px) && up>=abs(py))
        {
            cout<<"YES";
        }
         else 
        {
            cout<<"NO";
        }
    }
       cout<<'\n';
}
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        solve();
    }
    return 0;
}