toString implementation (renamed display into toString)