string.replace(///g, "/"); // this is also let new_arr = arr.replace(//g, "");
string.replace(///g, "/");