refactor interleaving string