public static String checkNotEmpty ( String str , String message ) { if ( checkNotNull ( str ) . isEmpty ( ) ) { throw new IllegalArgumentException ( message ) ; } return str ; }
Throws a IllegalArgumentException if given String is empty