my realization of string.h