Stop using deprecated from_str function