Render-time optimization -- constant folding of substr