delete characters that are not letters from array javascript site:stackoverflow.com code example Example: javascript remove character from string mystring.replace(/r/g, '')