Update scanner.c

update readString function.