Function added for simplified toString