string containing and kmp algorithm