check interleaving strings