String matching is a very interesting field, yet it's difficult to find some good documentation. In this link I've found a great catalog of algorithms with its corresponding implementations. Check it out: http://www-igm.univ-mlv.fr//string/node1.html
Thanks megalodon . It is really useful :)
Rabin will be unhappy with Karp-Rabin Algorithm :) Anyway I will thank you by up-voting.