States format for strings

How can I use this action using state variables?

action:
    - service: shell_command.test
      data_template:
        arguments: “this is some text“ 2773

I tried doing this:
arguments: '{{states('sensor.1')}}, {{states('sensor.2')}}'

Like this the first value should be $1 and the second $2. However the first contains text and spaces:
This is some text 2773
To work, it should be like this:
"This is some text" 2773

But even if I add " to the code it doesn’t seem to work.
arguments: '"{{states('sensor.1')}}", {{states('sensor.2')}}'

I just don‘t understand how HA expects “ or ‘.

The inner and outer quote need to be different:

"{{states('sensor.1')}}, {{states('sensor.2')}}"

Also data_template has been changed to just data.

Ok, thanks, but I also need the first value in quotes.

I think you can escape them like this:

action:
    - service: shell_command.test
      data:
        arguments: "\"{{states('sensor.1')}}\", {{states('sensor.2')}}"

Or like this:

action:
  - service: shell_command.test
    data:
      arguments:
        - "{{states('sensor.1')}}"
        - "{{states('sensor.2')}}"

In all cases the spaces are used as separators. Probably an issue of the shell.

try this:

arguments: >
  \" ~ {{states('sensor.1')}} ~ \" {{states('sensor.2')}}

In the end, this worked:

data:
  arguments1: "text number one"
  arguments2: 245345

/path/to/shell "{{ arguments1 }}" "{{ arguments2 }}"

Thank you all