Update substring.c