override toString() for Record class