fix spaces in ImageMosaic custom dimension

trim values
Merge pull request #361 from ccancellieri/master-spaces-in-custom-dimension

fix spaces in ImageMosaic custom dimension