#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define ll long long int
#define ff(i,n) for(ll i=0;i<n;i++)
#define pb push_back
#define mod 1000000007



int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
     ll test;
     cin>>test;


	while(test--)
	{
	    int x,y,u=0,d=0,l=0,r=0;
	    cin>>x>>y;
	    string s;
	    cin>>s;
	    for(int i=0;i<s.length();i++)
        {
            if(s[i]=='U')
                u++;
            else if(s[i]=='D')
                d++;
            else if(s[i]=='L')
                l++;
            else
                r++;
        }
        l*=-1;
        d*=-1;

        if((x<=r && x>=l) &&(y<=u && y>=d))
            cout<<"Yes\n";
        else
            cout<<"No\n";


	}
 return 0;
}



