Given a string in Javacript, such as
var str = \"this\'s kelly\";
I want to replace the apostrophe (\') with another character. Here is what I\
str = str.replace("'", "A");
Your running the function but not assigning it to anything again so the var remains unchanged