let mut story = string::new(); let salt_narrative = vec!["once upon a time, salt was forbidden.", "but its story didn't slip by unnoticed."]; for sentence in salt_narrative.iter() { story.push_str(sentence); if sentence.contains("forbidden") { story.push_str(" this narrative gives us a unique flavor of history."); } else if sentence.contains("slip by") { story.push_str(" yet, it managed to kick off again, rewriting its previous connotations."); } } println!("{}", story);