MultiAutoCompleteTextView adds ", "
<p>I have a MultiAutoCompleteTextView. When i enter "Sal" it suggest "Salami" , but when i press it in the box stands "Salami, ".</p>

<p>How could i prefent that?</p>

<p>My Code:</p>

<p>void addAutoSuggest ()</p>

<pre><code>{
     myDB = this.openOrCreateDatabase(MY_DB_NAME, MODE_PRIVATE, null);
     ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;();
     Cursor cursor = this.myDB.query(MY_DB_TABLE, new String[] {"name"},null,null,null,null,null,null);
      if (cursor.moveToFirst()) {
         do {
             String str= cursor.getString(0);
            list.add(str); 
            } 
         while (cursor.moveToNext());
      }
      if (cursor != null &amp;&amp; !cursor.isClosed()) {
         cursor.close();
      }
      if (list!=null)
          {
              name.setAdapter( new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_dropdown_item_1line, list));
              name.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
          }
      }
</code></pre>
