[Pretty print] Adding toString method to historyEntry.