Function collectionToString