Made verticesToString more versatile