fixed mongo arguments to support trailing space