generalized strings to arraysg