hack to collapse strings.