Do not use String.isEmpty as it is not in Java 1.5