added example how to trim each value by using a closure