Trim strings that are formatted to go into solr, so leading and trailing whitespace does not affect results.
Merge pull request #115 from tumblr/will-trim-hostname

Trim strings that are formatted to go into solr queries