Remove isEmpty on String to compile with Java5