changing string to array