Improved StringCompiler with operator precedence