[Dependency] Improve #to_s with external sources