DSPACEAPI-4: added "trim" parameter to getMetadataFields method