I'm using alert dialog to show some records.those records are comming from db and display in Alertdialog.when user click on item i want to get item name to Log.this is my code.it show item as `[test]` but i want it showing as `test`

ArrayList arrayList and String [] categoryStrings initialized on top

```
    List<Video> vd=Video.findWithQuery(Video.class, "select * from Video");
            if (vd.size()>0) {

                for (Video v : vd) {

                    arrayList.add(v.getTitle());

                }

                final List<String> list = Arrays.asList(arrayList.toString());
                categoryStrings=new String[list.size()];
                categoryStrings=list.toArray(categoryStrings);

                AlertDialog.Builder alert = new AlertDialog.Builder(Editmedia.this);

                alert.setTitle("Media List");
                alert.setCancelable(false);

                final int selected = 0; // or whatever you want
                alert.setSingleChoiceItems(categoryStrings, selected, new DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int item) {
                        //onclick
                        String categoryString = categoryStrings[item];

                        Log.d("sel", " " + item+" "+categoryString);

                        edit();
                    }
                });

                alert.show();

```

log value showing 
`0 [test]` i want it as `test`

Log 
[![Log](https://i.stack.imgur.com/Ap7h8.jpg)](https://i.stack.imgur.com/Ap7h8.jpg)