Convert array to string on output