Use from_str from std::str

Bring up to date with
https://github.com/rust-lang/rust/commit/29bc9c632eda71c6b4a8b35db637971953b58d03