trim to avoid whitespaces in resources
(error in http://securitytoolbox.appspot.com/MASO ontology)