removed some str functions. added rabin karp algorithm