finalizing string/array stuff