trim whitespace in version