An assortment of string matching and searching algorithms with a comparative study