Replace remaining to_str() with to_string()

This commit handles the remaining instances of to_str() that I hadn't run into yet.