lcs for individual sentences