Handle string formulas correctly