#include using namespace std; using ll = long long; #define rep(i, s, e) for (int i = (int)s; i < (int)e; i++) string key = "helloworld"; int main() { cin.tie(nullptr); int T; cin >> T; rep(testcase, 0, T) { int N; string S; cin >> N >> S; vector res(0); rep(s, 0, N - 10 + 1) { bool flag = true; rep(i, 0, 10) { if (S[s + i] != '?' && S[s + i] != key[i]) flag = false; } if (flag) { string T = S; rep(i, 0, N) { if (s <= i && i < s + 10) T[i] = key[i - s]; else if (T[i] == '?') T[i] = 'a'; } res.push_back(T); } } if (res.size() == 0) { cout << -1 << '\n'; continue; } sort(res.begin(), res.end()); cout << res[0] << '\n'; } }