I think there's already boolean Validate.isEmpty(String s) method to do that