fix some waring and add string find.