stackText should only be set once for deep substitutions