Add longest common substring