`isEmpty()` won't work on Froyo. Use `length() > 0` instead