Trim various things by removing leading and trailing whitespace.