#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define null NULL
#define pb push_back
#define F first
#define S second
typedef vector<int> vi;
typedef pair<int, int> pii;
const int mod = 1000000007;
inline void add(int &x, int y)
{
    x += y;
    if (x >= mod)
        x -= mod;
    if (x < 0)
        x += mod;
}
inline int mul(int x, int y) { return ((ll)x * y) % mod; }
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int t;
    cin >> t;
    while (t--)
    {
        int px, py;
        cin >> px >> py;
        string s;
        cin >> s;
        int u = 0, d = 0, l = 0, r = 0;
        for (int i = 0; i < s.size(); i++)
        {
            if (s[i] == 'L')
                l++;
            else if (s[i] == 'R')
                r++;
            else if (s[i] == 'D')
                d++;
            else if (s[i] == 'U')
                u++;
        }
        int flag = 0;
        if ((px >= 0 && py >= 0) && (r >= px && u >= py))
        {
            flag = 1;
        }
        else if ((px >= 0 && py <= 0) && (r >= px && d >= abs(py)))
            flag = 1;
        else if ((px <= 0 && py <= 0) && (l >= abs(px) && d >= abs(py)))
            flag = 1;
        else if ((px <= 0 && py >= 0) && (l >= abs(px) && u >= py))
            flag = 1;
        if (flag)
            cout << "YES" << endl;
        else
            cout << "NO" << endl;
    }
    return 0;
}
