Pulled the Op1 and Op2 to string code out of program_to_string so I can reuse it.