Suffix to Prefix Rule and Substring Matching Rules of Sting Matching Algorithms: An Analytical study