Comparing two scrambled strings