add some new function in str_lib.c