how to convert string to array