//You can convert a string to an integer using the parse method
let my_string = "27".to_string(); // `parse()` works with `&str` and `String`!
let my_int = my_string.parse::<i32>().unwrap();
let string = String::from("120");
let number: i32 = string
.trim()
.parse()
.expect("This string cannot be converted to a number");
println!("{}", number + 10) // prints 130