Simplified the ToListString function