Remove String.isEmpty for JDK5 compatibility