Check if an Original String Exists Given Two Encoded Strings