Create longest common string