Remove String isEmpty to support Java 1.5