// remove all special characters except numbers & text A-X & a-z? var name = name.replace(/[^a-zA-Z0-9 ]/g, "");