SYNC-274 - trim exclude/include classnames when saving

 - Added trim for saving include and exclude classnames
 - Added unit test for testing saved classnames