public static String stripDigits(final String text){
  if (text == null) {
    return null;
  }
  char[] inArray=text.toCharArray();
  StringBuilder out=new StringBuilder(inArray.length);
  for (int i=0; i < inArray.length; i++) {
    char c=inArray[i];
    if (Character.isLetter(c) || !Character.isDigit(c))     out.append(c);
  }
  return out.toString();
}

public static String stripDigits ( final String text ) { if ( text == null ) { return null ; } char [ ] inArray = text . toCharArray ( ) ; StringBuilder out = new StringBuilder ( inArray . length ) ; for ( int i = 0 ; i < inArray . length ; i ++ ) { char c = inArray [ i ] ; if ( Character . isLetter ( c ) || ! Character . isDigit ( c ) ) out . append ( c ) ; } return out . toString ( ) ; }
fetch only the text from a given string < br > e . g . text = ' 9000 st . gallen ' < br > this method will return test st . gallen
