Generalized collections to string