a basic to string method for different containers