beautify toString method