raise exception if from_str returns multiple objects