added functionality for trim parameter to output "simple" item metadata