Nothing too serious here, Just some time killing with KMP string searching algorithm by changing the values assigned to the table(comparison) array in the failure_function()