move string function from kernel.c to String.c