Trying to create a composite content-view

Problem: Trying to create a composite content view. I ran:
IDs=$(hammer content-view list --nondefault true --noncomposite true | grep -vE ‘—|CONTENT’ | awk ‘{ print $1 }’ | tr ‘\n’ ‘,’)
hammer content-view create --composite --auto-publish no --name “Full content” --description “Composite content view” --component-ids ${IDs%,}

Expected outcome: Creates a composite content view with my other non-composite content views. However, it barfs on the very first component id and says"
Could not create the content view:
Validation failed: Base Another component already includes content view with ID 4

I have no other composite content views.

Foreman and Proxy versions: 2.1.4-1

Foreman and Proxy plugin versions:

Distribution and version: CentOS 7.6

Other relevant data:

Nevermind. There must have been some non-ascii characer in the IDs variable. When I created it by hand:
ID=‘3,4,5,6,7,8,9,’
and ran my create script, it worked.