Use TextUtils.isEmpty() instead of String.isEmpty() to support api<9 devices.