code: function ( req, res, next ) {
  
      if ( req.body ) {
          trimStringProperties(req.body);
      }
  
      if ( req.params ) {
          trimStringProperties(req.params);
      }
  
      if ( req.query ) {
          trimStringProperties(req.query);
      }
  
      next();
  
  }
docs: trimRequest middleware: trim all request object: body, params, query