std::str::from_str deprecated, replaced by .parse()

Fixes "warning: use of deprecated item: call the .parse() method on the string instead" on rust-nightly
Some whitespaces got harmed in the process :)