Help with automation script - string variable keeps getting converted into array

Hi all, in my script I am making a service call using the value of a variable input_text.viomi_s9_script_helper that contains x,y coordinates as a string. When it runs, HA always convert the value into an array instead. How can I force it to use it as a string instead?

 service: xiaomi_miot.set_miot_property
 data:
   entity_id: vacuum.viomi_v18_155a_robot_cleaner
   siid: 6
   piid: 1
   value: '{{ states(''input_text.viomi_s9_script_helper'')|string }}'

Trace shows

Executed: 7 August 2023 at 17:46:39
Result:
params:
domain: xiaomi_miot
service: set_miot_property
service_data:
entity_id: vacuum.viomi_v18_155a_robot_cleaner
siid: 6
piid: 1
value:
- 1385
- -298
target: {}
running_script: false