diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end.english.md
index a85d677587..e198232222 100644
--- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end.english.md
+++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/remove-whitespace-from-start-and-end.english.md
@@ -13,7 +13,7 @@ Sometimes whitespace characters around strings are not wanted but are there. Typ
## Instructions
Write a regex and use the appropriate string methods to remove whitespace at the beginning and end of strings.
-Note
The .trim()
method would work here, but you'll need to complete this challenge using regular expressions.
+Note: The String.prototype.trim()
method would work here, but you'll need to complete this challenge using regular expressions.
## Tests
@@ -23,8 +23,8 @@ Write a regex and use the appropriate string methods to remove whitespace at the
tests:
- text: result
should equal to "Hello, World!"
testString: assert(result == "Hello, World!");
- - text: You should not use the .trim()
method.
- testString: assert(!code.match(/\.trim\(.*?\)/));
+ - text: Your solution should not use the String.prototype.trim()
method.
+ testString: assert(!code.match(/\.trim\([\s\S]*?\)/));
- text: The result
variable should not be set equal to a string.
testString: assert(!code.match(/result\s*=\s*".*?"/));