Use toString methods instead of printf