save string as array