added isEmpty method to StringUtil. removed dependence upon java 1.6 String.isEmpty method which doesn't exist in java 1.5.