Added trim to element as per JIRA Islandora778