don't use String.isEmpty() or Locale.ROOT

These are not available in API Level 1 (aka Java 1.5)

Fixes #2
(crash in android 2.2: String.isEmpty() and Locale.ROOT not found)