# Return a string without quotes

**URL:** <https://forum.inductiveautomation.com/t/return-a-string-without-quotes/6045>\
**Category:** Ignition\
**Created:** [March 17, 2013, 1:56pm UTC](https://forum.inductiveautomation.com/t/return-a-string-without-quotes/6045 "2013-03-17T13:56:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viggi](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Viggi](https://forum.inductiveautomation.com/u/Viggi)\
**Post date:** [March 17, 2013, 1:56pm UTC](https://forum.inductiveautomation.com/t/return-a-string-without-quotes/6045/1 "2013-03-17T13:56:03Z")

</div>

With the integer data from three tags, I need to return a combined string. I use scripting.

[code]x = [‘a’ , ‘b’ , ‘c’ , ‘d’]  
y = [‘p’, ‘q’ , ‘r’ , ‘s’]

# I read data from the tag,( i am not writing the code here), the integer value is stored in i,j,k

choice1 = x[i]  
choice2 = y[j]  
choice3 = k  
total = choice1, choice2, choice3  
return total [/code]

Example : I get something like this for a tag1 = 1, tag2 = 2 , tag3 =15

(‘b’ , ‘r’ , 15)

My problem is that i don’t want the brackets and quotes, I would like the output to be formatted in this way :

b r 15

Can anyone give me a sol’n. ?

I tried python website, but with no luck.

---

<div class="post-metadata">

**Author:** ![markdobtech](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@markdobtech](https://forum.inductiveautomation.com/u/markdobtech)\
**Post date:** [March 17, 2013, 4:21pm UTC](https://forum.inductiveautomation.com/t/return-a-string-without-quotes/6045/2 "2013-03-17T16:21:25Z")

</div>

This will return the variables as one string with a space between each. If needed any of the ‘choice’ variables can be coerced to string. i.e. str(choice3).

total = ‘%s %s %s’ % (choice1, choice2, choice3)

return total

---

<div class="post-metadata">

**Author:** ![Viggi](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@Viggi](https://forum.inductiveautomation.com/u/Viggi)\
**Post date:** [March 17, 2013, 4:43pm UTC](https://forum.inductiveautomation.com/t/return-a-string-without-quotes/6045/3 "2013-03-17T16:43:31Z")

</div>

Thank you for your reply, I was able to get

b r 15

in ignition .
