Add str_array utility function to runtime primitives
#2275
Merged
str_array utility function to runtime primitives
#2275