to_s method not working