Add a from_str function.

It just calls out to the associated function on the trait.