how to convert string into array