[dtstring]add string impl code

kmp algorythm code