Cleaning up mathematical strings

In PHP there is a macro called makepretty which replaces double negatives in a string with a positive sign. There are other versions too (polymakepretty, makexxpretty) that replace 1x with x and eliminate things like +0.

Is there some similar functionality in CL? To mimic makepretty in CL, I’ve created dynamic strings using the when-otherwise switch, but it’s fairly cumbersome. Is there an easier way to clean up strings with math symbols?

I don’t think there is anything available that does what you described, although I think it would be fantastic if there was. I’ve always created dynamic latex for coefficients of 1 or constants of 0 as well. Same goes for plural/singular forms of text.