to find substring in main string