Host parameters not working as expected in ansible role

Problem:
When ansible fills variable from Host parameters it puts a space between every letter. For example if I put the following in the content variable field ssh_prd-test-server for some reason when the ansible role runs this is what gets entered into the file s s h _ p r d - t e s t - s e r v e r

Expected outcome:
When reading the value from the host parameters the value that is entered into the host parameters should get added. In this case it would be ssh_prd-test-server

Foreman and Proxy versions:

foreman.noarch                                             3.11.1-1.el9                     @foreman
katello.noarch                                             4.13.1-1.el9                     @katello

Foreman and Proxy plugin versions:
I am only running one Foreman server right now.

Distribution and version:
Rocky Linux 9.4 – Foreman Server and Client Server

Other relevant data:

The ansible role runs correctly on our other ansible system. It has been just been moved to this server. So far this is the only role that I am having issues with. There are other roles that are working that pull from the host parameters.

Ansible .j2 file that is having the issues.

-:ALL EXCEPT root it_admin server_admin {% if groups_allow is defined %}{% for item in groups_allow %}{{ item }} {% endfor %}{% endif %}nx gdm:ALL

I was able to get this figured out. For anyone else who runs into this issue, change the parameter to an array for the value enter ["ssh_prd-test-server"]