Replace to_str() with to_string()

- Replaces to_str() with to_string() in code samples and explanations
- Standardizes references to the struct 'String'