[PATCH] lib: Improve the performance of string.c by Huexxx