abstract the call to `smath-math-string'