Fix getting names separated with comma or space

.sub() put the content of data-switcher-dashboards into a <sub> tag