Implement toString method for name model.