adding .to_s method in case of nil