Working write_string() and tests.
Initial working write_formula() and tests.