// пара моих групи ща на заднем (what? what? what?)
#include <bits/stdc++.h>
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
#define all(a) (a).begin(),(a).end()

using namespace std;

const int MAXN = 7000;
const int MOD = 1e9 + 7;
const int INF = 2e9;
const ll INFLL = 1e18;

void solve() {
    int x, y;
    cin >> x >> y;
    string s;
    cin >> s;
    for (char c : s) {
        if (c == 'R' && x > 0)
            --x;
        else if (c == 'L' && x < 0)
            ++x;
        else if (c == 'U' && y > 0)
            --y;
        else if (c == 'D' && y < 0)
            ++y;
    }
    cout << (x == 0 && y == 0 ? "YES\n" : "NO\n");
}

int32_t main() {
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);srand(time(NULL));
    //freopen("brokeday.in","r",stdin);
    //freopen("richday.out","w",stdout);
    int tests = 1;
    cin >> tests;
    while (tests--) {
        solve();
    }
    return 0;
}