added from_string clauses for flag

Small fix for the flags PR