function isSentencePalindrome(str) {
// Change the string into lowercase and remove all non-alphanumeric characters
str = str.toLowerCase().replace(/[^a-zA-Z0-9]/g, "");
return str === str.split("").reverse().join("");
}
console.log(isSentencePalindrome("Al lets Della call Ed, Stella.") ? "yes" : "no");
/*
run:
yes
*/