question: public static String makeCompliantName ( String value ) { value = value . replace ( ':' , '-' ) ; value = value . replace ( ',' , '-' ) ; value = value . replace ( '=' , '-' ) ; value = value . replace ( '*' , '-' ) ; value = value . replace ( '?' , '-' ) ; if ( value . length ( ) < 1 ) { value = "nothing" ; } return value ; }
target:  Checking for String that is not null, not empty, and not white space only using standard Java classes.