#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
const ll inf = 1e18;
const ll mod = 1e9 + 7;


int x, y;
string s;

void init() {
}

void input() {
    cin >> x >> y;
    cin >> s;
}

void solve() {
    int u = 0, d = 0, r = 0, l = 0;

    for (int i = 0; i < int(s.size()); i++) {
        if (s[i] == 'U') {
            u++;
        }
        if (s[i] == 'D') {
            d++;
        }
        if (s[i] == 'R') {
            r++;
        }
        if (s[i] == 'L') {
            l++;
        }
    }

    if (u >= y && y >= -d && r >= x && x >= -l) {
        cout << "YES" << endl;
    }
    else {
        cout << "NO" << endl;
    }
}

void output() {
}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int number_of_testcases = 1;
    cin >> number_of_testcases;
    while (number_of_testcases--) {
        init();

        input();

        solve();

        output();
    }

    return 0;
}
