Recursively trim all the strings in a collection (object or array).