added find substring method