add trim to path and value

when there's a leading space in the value (in create control) the ingest occasionally fails 

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

https://jira.duraspace.org/browse/ISLANDORA-711