def check(X, Y): for i in range(len(X)): if X[i] != Y[i] and X[i] != "?": return 0 return 1 T = int(input()) hello = list("helloworld") for _ in range(T): N = int(input()) S = list(input()) flag = 0 for i in range(N - 10, -1, -1): if S[i:i+10] == hello: flag = 1 break if flag: for i in range(N): if S[i] == "?": S[i] = "a" print("".join(S)) continue L = [] for i in range(N - 10, -1, -1): temp = [None] * N if check(S[i:i+10], hello): for j in range(N): temp[j] = S[j] temp[i:i+10] = hello for j in range(N): if temp[j] == "?": temp[j] = "a" L.append("".join(temp)) if not L: print(-1) continue else: print(min(L))