code: @Nullable
      public static String firstString(Cursor cursor, boolean close) {
          String s = cursor.moveToFirst() ? cursor.getString(0) : null;
          close(cursor, close);
          return s;
      }
docs: Get the String value in the first row and column.
  
  @param close true to close the cursor or false to leave it open
  @return null if the cursor is empty