fixed the DND bug for items with spaces or other special characters