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

typedef long long ll;
const int N = 1e5 + 7;


int main(){
    #ifndef ONLINE_JUDGE
        freopen("in.txt", "r", stdin);
    #endif

    int t, px, py;
    string s;
    cin>>t;
    while(t --) {
        cin>>px>>py>>s;
        int u = 0, d = 0, l = 0, r = 0;
        if(px >= 0) r = px;
        else l = -px;
        if(py >= 0) u = py;
        else d = -py;
        for(char c : s) {
            if(c == 'U') u --;
            else if(c == 'D') d --;
            else if(c == 'L') l --;
            else r --;
        }
        if(px >= 0 && py >= 0 && u <= 0 && r <= 0) cout<<"YES\n";
        else if(px >= 0 && py <= 0 && d <= 0 && r <= 0) cout<<"YES\n";
        else if(px <= 0 && py >= 0 && u <= 0 && l <= 0) cout<<"YES\n";
        else if(px <= 0 && py <= 0 && d <= 0 && l <= 0) cout<<"YES\n";
        else cout<<"NO\n";
    }
    return 0;
}