added write array string