#include #include #include #include #include #include #include #include #include #include #include #include #include #define debug_value(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << #x << "=" << x << endl; #define debug(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << x << endl; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } using namespace std; typedef long long ll; template vector> vec2d(int n, int m, T v){ return vector>(n, vector(m, v)); } template vector>> vec3d(int n, int m, int k, T v){ return vector>>(n, vector>(m, vector(k, v))); } template void print_vector(vector v, char delimiter=' '){ if(v.empty()) { cout << endl; return; } for(int i = 0; i+1 < v.size(); i++) cout << v[i] << delimiter; cout << v.back() << endl; } const string helloworld = "helloworld"; bool ok(string s){ for(int i = 0; i < helloworld.size(); i++){ if(s[i] == '?') continue; if(s[i] != helloworld[i]) return false; } return true; } void solve(){ int n; cin >> n; string s; cin >> s; string ans = "-1"; int len = helloworld.size(); for(int i = 0; i+len <= n; i++){ if(ok(s.substr(i, len))){ string t = s; for(int j = i; j < i+len; j++) t[j] = helloworld[j-i]; for(int j = 0; j < n; j++){ if(t[j] == '?') t[j] = 'a'; } if(ans == "-1"){ ans = t; }else{ chmin(ans, t); } } } cout << ans << endl; } int main(){ ios::sync_with_stdio(false); cin.tie(0); cout << setprecision(10) << fixed; int t; cin >> t; while(t--) solve(); }