Added trim function.
Fixed typo.
New programs that trims data to specified length in source.