added KMPSearch for string class