longest common substring return string