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