added ar & findstring logic