#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(ll i=(a);i<(b);i++)
#define per(i,a,b) for(ll i=(b)-1;i>=(a);i--)
using ll=long long;
int tc,x,y; string s;
int main(){
    ios_base::sync_with_stdio(0);
    cin>>tc;
    while(tc--){
        cin>>x>>y>>s;
        unordered_map<char,int> m;
        for(char c:s) m[c]++;
        int ans=1;
        if(x<0&&m['L']<abs(x)||x>0&&m['R']<abs(x))ans=0;
        if(y<0&&m['D']<abs(y)||y>0&&m['U']<abs(y))ans=0;
        cout<<(ans?"YES":"NO")<<"\n";
    }
}