Ex 1.18 done in removetrailingws.c
Ex 1.19 in reverse.c