I've almost got it. As I enter a letter in one box the same letter in the other box is replaced with "".
The problem is the first letter won't do anything. If I have
1st box contains- a b c d e f g
As I type in the second box all letters will be removed(replaced) except the a, nothing...