added to_s to handle nil values