Override toString method on records