Exercise 1-18.

Program to remove blank lines and trailing whitespace.