Improved "Force" implementation
Implemented variation of the Knuth-Morris-Pratt algorithm