new toString method matching requirements