SYNC-274 - trim exclude/include classnames when saving

https://tickets.openmrs.org/browse/SYNC-274