Trim strings that are formatted to go into solr

... whitespace does not affect results.