refactor cdebug.go with strings.Join