public static boolean ignorableWhitespace(String value){
  Matcher m;
  m=whitespacePattern.matcher(value);
  if (m.matches())   return true;
 else   return false;
}

public static boolean ignorableWhitespace ( String value ) { Matcher m ; m = whitespacePattern . matcher ( value ) ; if ( m . matches ( ) ) return true ; else return false ; }
determine if a string contains only ignorable white spaces .
