simplified string1.c