//Checks whether the string is a palindrome. 
//Returns: true if palindrome, false otherwise
module.exports.isPalindrome = function(text){
	text = text.replace(/\s+/g, '').toLowerCase();	//Remove spaces to support long, multi-word palindromes. Ignore case
	var reverse = text.split("").reverse().join("");
	return text === reverse;
}
@@ -137,54 +137,34 @@
 )%7B%0A%09
-text = text.replace(/%5Cs+/g, '').toLowerCase();
+if(!text)%0A%09%09return false;%0A
 %09//R
@@ -228,16 +228,134 @@
 ore case
+. Remove special characters%0A%09text = text.replace(/%5Cs+/g, '').toLowerCase().replace(/%5B%5Ea-z%5D/g, '');%0A%09console.log(text);
 %0A%09var re

Remove special characters from palindrome check