public static String emptyIfEqual(String string,String test){
  return test != null && test.equals(string) ? EMPTY : string;
}

public static String emptyIfEqual ( String string , String test ) { return test != null && test . equals ( string ) ? EMPTY : string ; }
returns the empty string if the given string is equal to the given test , the string if not .
