#include <bits/stdc++.h>
using namespace std;
 
#define Debug(n) cout << n << " ";
#define dou double
#define ll long long
#define ull unsigned long long
#define FastIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define pb push_back
#define mp make_pair
#define fi first
#define se second
const ll Div=10e9+7;

void Solve() {
    int px, py, cx = 0, cy = 0;
    bool x = false,
         y = false;
    string a;
    map <char, int> m;
    cin >> px >> py >> a; 
    for (int i=0; i<a.length(); i++) {
        if (a[i] == 'U') cy++;
        if (a[i] == 'D') cy--;
        if (a[i] == 'R') cx++;
        if (a[i] == 'L') cx--;
        m[a[i]]++;
    }
    if (cy == py && cx == px) {
        cout << "YES";
    }
    else {
        if (cx == px) x = true;
        if (cy == py) y = true;
        if (cx > px && m['R'] >= (cx - px)) x = true;
        if (cx < px && m['L'] >= (px - cx)) x = true;
        if (cy > py && m['U'] >= (cy - py)) y = true;
        if (cy < py && m['D'] >= (py - cy)) y = true;
        if (x && y) cout << "YES";
        else cout << "NO";
    }
}
 
void Program () {
    int i = 1;
    cin >> i;
    while (i--) {
        Solve();
        cout << "\n";
    }
}
 
int main () 
{
    FastIO
    // freopen ("input.inp","r",stdin);
    // freopen ("output.out","w",stdout);   
    Program();
}