Add from_string method to BabelAdaptor.