The tuple class already has a toString() method, I assume you want to change the formatting?