some string function archieved with C code