It depends on what you mean by “not a letter,” but if you mean that the letters are az or AZ, try this:
s = s.replaceAll("[^a-zA-Z]", " ");
If you want to collapse several characters into one space, add a plus to the end of the regular expression.
s = s.replaceAll("[^a-zA-Z]+", " ");
source share