7.x

Added trim to elements as per JIRA Islandora778