For checking empty Strings, you should rather use donorId.equals("").