#include<bits/stdc++.h> using namespace std; int T,n; int main() { cin>>T; for(;T>0;T--){ string s,t; cin>>n; cin>>t; int h=sizeof(t),hh=n-h; if(hh==0){ cout<<t<<endl; continue; } for(int i=0,j=0,k=0;i<h;i++){ if(t[i]!='w'&&t[i]!='m'&&t[i]!='u'&&t[i]!='n') j+=1,s[j]=t[i]; else if(hh!=0&&t[i]=='w'){ j++;s[j]='u';j++;s[j]='u';hh--; }/*else if(hh!=0&&t[i]=='m'){ j++;s[j]='n';j++;s[j]='n';hh--; }*/else j++,s[j]=t[i]; } for(int i=1;i<=n;i++) cout<<s[i]; cout<<endl; } return 0; }