trim whitespace from all lines