LCS and LD for NSString