process escaped dollars in writemaths