Fix performance using Boyer-Moore String Search Algorithm
Refactor