C# and GHPython: set data item for interval

When using “set data item” on an Interval-hinted input on either the C# or GHPython component, the value must be entered with quotes like "1 To 3" (as opposed to 1 To 3). Quoting is not necessary when setting multiple data items, nor is it required when setting a data item on a Domain component. Is this a bug or intended behavior?

It was difficult to figure out the quotes are necessary, because once an interval is internalized, the now pre-filled “set data item” does not contain those quotes and cannot be used as formatted (the text turns red if you try to change one of the numbers).