Use String.isEmpty() now that we support java 6.