Trim whitespace-only lines