#include #include using namespace std; using namespace atcoder; using ll = long long; using ld = long double; using mint = modint998244353; void solve() { int N; string S, T, C = "helloworld", ans; cin >> N >> S; set st; int pos = -1, j = 0; ans = string(N, 'z'); for (int i = 0; i < N - 9; i++) { bool flag = true; for (int j = 0; j < 10; j++) { if (S[i + j] != C[j] && S[i + j] != '?') { flag = false; break; } } if (!flag) continue; T = ""; for (int j = 0; j < N; j++) { if (j == i) { T += C; j += 9; } else if (S[j] == '?'){ T += 'a'; } else { T += S[j]; } } if (ans > T) ans = T; } if (ans == string(N, 'z')) { cout << -1 << endl; return; } cout << ans << endl; } int main() { int T; cin >> T; while (T--) solve(); return 0; }