# Normalize Extra Spaces in Scenario Editor Values

Text1.replace(/ {1,}/g," ")

The `<span class="editor-theme-code">g</span>` at the end of the RegExp means: global, ie match and replace all occurrences.

![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/P2pIVE7c1Z75X75n-fb2b98361f0b.png)---

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

Last updated: October 16, 2026