check a current index of a string rust code example Example: how to index a string in rust num_string.chars().nth(i).unwrap()