Find longest common string subsequence