{"ScriptPreparationCode":"var testString1 = \u0022HelLo wHat\u0027s uP\u0022;\r\nvar testString2 = \u0022Loremipsumalotof changes to be tested\u0022;\r\n\r\nvar testSplitTitleCase = (str) =\u003E {\r\n return str.split(\u0027 \u0027)\r\n .map(w =\u003E w[0].toUpperCase() \u002B w.substring(1).toLowerCase())\r\n .join(\u0027 \u0027);\r\n}\r\n\r\nvar testRegExpTitleCase = (str) =\u003E {\r\n return str.replace(/\\w\\S*/g, function (txt) {\r\n return txt.charAt(0).toUpperCase() \u002B txt.substr(1).toLowerCase();\r\n });\r\n}\r\n","TestCases":[{"Name":"RegExp","Code":"testRegExpTitleCase(testString1);\r\ntestRegExpTitleCase(testString2);","IsDeferred":false},{"Name":"Test split","Code":"testSplitTitleCase(testString1);\r\ntestSplitTitleCase(testString2);","IsDeferred":false}]}