def substitutable(S,T): return all(S[i]==T[i] or S[i]=="?" or T[i]=="?" for i in range(len(S))) def solve(): N=int(input()) S=input() H="helloworld" Ans="" exist=0 for i in range(N-len(H),-1,-1): if substitutable(S[i:i+len(H)],H): U=S[:i].replace("?","a")+H+S[i+len(H):].replace("?","a") if exist==0: Ans=U else: Ans=min(Ans,U) exist=1 return Ans if exist else -1 #================================================== T=int(input()) print(*[solve() for t in range(T)], sep="\n")