fix #1000 - trim the search terms and when copying back to the original ...

...table for internal geocoder

The high resolution geocoding doesn't expose this problem.
Same as the previous comment