{"ScriptPreparationCode":"var str = \u0022This is a simple test! Over 20 Distinct Floor Plans Modern Quartz Countertops Complete Stainless Steel GE Appliances Moen Fixtures Oval Soaking Tubs Washer and Dryer in Every Home Central Air and Heat Overside Balconies and Patios Fiber-Based Internet Speeds at 25/15, 50/25, and 100/50 (Faster Enterprise Speeds Available). Over 20 Distinct Floor Plans Modern Quartz Countertops Complete Stainless Steel GE Appliances Moen Fixtures Oval Soaking Tubs Washer and Dryer in Every Home Central Air and Heat Overside Balconies and Patios Fiber-Based Internet Speeds at 25/15, 50/25, and 100/50 (Faster Enterprise Speeds Available). Over 20 Distinct Floor Plans Modern Quartz Countertops Complete Stainless Steel GE Appliances Moen Fixtures Oval Soaking Tubs Washer and Dryer in Every Home Central Air and Heat Overside Balconies and Patios Fiber-Based Internet Speeds at 25/15, 50/25, and 100/50 (Faster Enterprise Speeds Available). Over 20 Distinct Floor Plans Modern Quartz Countertops Complete Stainless Steel GE Appliances Moen Fixtures Oval Soaking Tubs Washer and Dryer in Every Home Central Air and Heat Overside Balconies and Patios Fiber-Based Internet Speeds at 25/15, 50/25, and 100/50 (Faster Enterprise Speeds Available). Over 20 Distinct Floor Plans Modern Quartz Countertops Complete Stainless Steel GE Appliances Moen Fixtures Oval Soaking Tubs Washer and Dryer in Every Home Central Air and Heat Overside Balconies and Patios Fiber-Based Internet Speeds at 25/15, 50/25, and 100/50 (Faster Enterprise Speeds Available). Controlled Access Community Podium Lounge with Billiards Table Fitness Facility Professional Conference Room Business Center Private Screening Room Dog Park and Washing Station Secure and Reserved Parking Garage Valet Dry Cleaning This is a simple test! . Controlled Access Community Podium Lounge with Billiards Table Fitness Facility Professional Conference Room Business Center Private Screening Room Dog Park and Washing Station Secure and Reserved Parking Garage Valet Dry Cleaning This is a simple test! . Controlled Access Community Podium Lounge with Billiards Table Fitness Facility Professional Conference Room Business Center Private Screening Room Dog Park and Washing Station Secure and Reserved Parking Garage Valet Dry Cleaning This is a simple test! . Controlled Access Community Podium Lounge with Billiards Table Fitness Facility Professional Conference Room Business Center Private Screening Room Dog Park and Washing Station Secure and Reserved Parking Garage Valet Dry Cleaning On a very large Text string containing Community Amenities or Apartment Amenities\u0022;\r\nvar searchText = \u0022community amenities\u0022;\r\nvar ri = new RegExp(\u0027community amenities\u0027, \u0027i\u0027);","TestCases":[{"Name":"lowercase, trim, indexof","Code":"var a = str.toLowerCase().trim();\r\nvar b = searchText.toLowerCase().trim();\r\nvar c = a.indexOf(b) \u003E -1;\r\n","IsDeferred":false},{"Name":"trim, lowercase, indexof","Code":"var a = str.trim().toLowerCase();\r\nvar b = searchText.trim().toLowerCase();\r\nvar c = a.indexOf(b) \u003E -1;","IsDeferred":false},{"Name":"regex","Code":"var c = /simple/i.test(str);","IsDeferred":false},{"Name":"lowercase, replace, indexof","Code":"var a = str.toLowerCase().replace(\u0022 \u0022, \u0022\u0022);\r\nvar b = searchText.toLowerCase().replace(\u0022 \u0022, \u0022\u0022);\r\nvar c = a.indexOf(b) \u003E -1;","IsDeferred":false},{"Name":"RegExp","Code":"var c = (new RegExp(searchText, \u0027i\u0027)).test(str);","IsDeferred":false},{"Name":"Same RegExp","Code":"var d = ri.test(str)","IsDeferred":false}]}