subString search method created.