Added trim to elements as per JIRA Islandora-778