#include #include #include using namespace std; int main() { int t; cin>>t; assert(1<=t && t <= 3); while(t--) { string str1,str2; cin>>str1>>str2; int n = str1.length(); assert(1 <= n && n <= 100000); for(int i= 0; i< n ; i++) { if(str1[i] != str2[i]) cout<<"B"; else { if(str1[i] == 'B') cout<<'W'; else cout<<'B'; } } cout<