Replace String.isEmpty() calls with Java 5 methods