Trim out the empty fields so we don't get extra whitespace.