{"ScriptPreparationCode":"const str = \u0022i want to replace all the spaces in this string\u0022\r\nconst space = \u0022 \u0022\r\nconst und = \u0022 \u0022\r\nconst regExp = / /g","TestCases":[{"Name":"replace with global regexp","Code":"str.replace(regExp, und);","IsDeferred":false},{"Name":"replaceAll","Code":"str.replaceAll(space, und);","IsDeferred":false},{"Name":"split-join","Code":"str.split(space).join(und);","IsDeferred":false}]}