Fix trim arguments for Mongo Documents

`prepareArguments()` only processes arrays of arguments.
Create a new `prepareArgument()` to process a single argument
Use the new `prepareArgument()` to proces the document