sanitizing to string method