determine string interleaving