#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
const ll INF = LLONG_MAX;
int main()
{
    ll t; cin>>t;
    while(t>0,t--)
    {
        ll x,y; cin>>x>>y;
        string s; cin>>s;
        ll U = 0,D = 0, R = 0, L = 0;
        bool f1=0,f2=0;
        for(ll i=0;i<s.size();i++)
        {
            if(s[i] == 'U')
                U++;
            else if(s[i]== 'D')
            D++;
            else if(s[i] == 'R')
                R++;
                else L++;
        }
        //cout<<U<<" "<<D<<" "<<R<<" "<<L<<endl;
        if(x>=0){
            if(R>=x)
                f1=1;}
        else if(L>=x*-1)
            f1=1;
        if(y>=0){
            if(U>=y)
            f2=1;}
        else if(D>=y*-1)
            f2=1;
        if(f1 && f2)
        {
            cout<<"YES";
        }
        else cout<<"NO";
        cout<<endl;
    }
}
