''' Codeforces Round 986 (Div. 2) Problem : https://codeforces.com/contest/2028/problem/A Solution: https://aruljohn.com/blog/alice-adventures-in-chess-problem/ ''' def do_it(a, b, s): x, y = 0, 0 for _ in range(50): for direction in s: if direction == 'N': y += 1 elif direction == 'S': y -= 1 elif direction == 'E': x += 1 elif direction == 'W': x -= 1 if x == a and y == b: return 'YES' return 'NO' t = int(input()) for _ in range(t): n, a, b = list(map(int, input().split())) s = input() print(do_it(a, b, s))