private static String checkForEmptyString ( String s ) { if ( s == null ) return null ; if ( s . length ( ) == 0 ) return null ; return s ; }
Checks if the specified string is empty or null and if so returns null . Otherwise simply returns the string .