Removed pub from to_string in examples.