fix spaces in ImageMosaic custom dimension

trim values
Merge pull request #362 from ccancellieri/2.4.x-GEOS-6093-spaces-in-custom-dimension

fix spaces in ImageMosaic custom dimension