Added trim to elements as per JIRA Islandora-778
Merge pull request #14 from jamesgardham/6.x

Added trim to elements as per JIRA Islandora-778