Create longest common substring of multi-strings