Revert String.isEmpty to String.length() == 0 to be api 7 compatible