public static boolean isNullOrEmpty(StringBuilder text){
  return (text == null) || isNullOrEmpty(text.toString());
}

public static boolean isNullOrEmpty ( StringBuilder text ) { return ( text == null ) || isNullOrEmpty ( text . toString ( ) ) ; }
returns true if the passed in text is either a null value or is an empty string .
