Added toString() when interacting with records

When an id is an actual number the current code incorrectly checks if the id is already in the records.