Reduce calls to .clone() and .to_string()

enumerate is a very useful function when you want to have both the element and index when iterating.