Replace in string (includes alphanumeric only)
// replace spaces with underscore
this.FormName.replace(/ /g , "_" );
// Remove all except numbers
newVal.replace(/[^0-9.]/g, "");
// remove non-alphanumeric characters
url.value = url.value.replace(/[^\w]*/gi, "");