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

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;

#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define PPB pop_back
#define FOREACH(it, v) for(auto it = v.begin(); it != v.end(); it++)
#define ALL(v) a.begin(), a.end()
#define FO(i, x, n) for(int i = x; i < n; ++i)
#define F0(i, n) for(int i = 0; i < n; ++i)
#define RF(i, n, k) for(int i = n-1; i >= k; --i)
#define FOI(i, x, n, in) for(int i = x; i < n; i += in)
#define RFOI(i, x, n, in) for(int i = x; i >= n; i -= in)
#define Sonic ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);

//ifstream fin("date.in");
//ofstream fout("date.out");

void solve(){
    int px, py, u = 0, d = 0, l = 0, r = 0;
    string s;
    cin >> px >> py;
    cin >> s;
    for(int i = 0; i < s.size(); ++i){
        if(s[i]=='U')
            u++;
        if(s[i]=='D')
            d--;
        if(s[i]=='L')
            l--;
        if(s[i]=='R')
            r++;
    }
    if(px < 0 && l > px || px > 0 && px > r || py < 0 && d > py || py > 0 && py > u)
        cout << "NO" << endl;
    else
        cout << "YES" << endl;

}

int main()
{
    Sonic;

    int t;
    cin >> t;
    while(t--){
        solve();
    }

    return 0;
}
