Complete conversion from math to string