Program now strips whitespace from beginning and end of lines in the
record.