get from_sam_str working