added user input option to string appending (task 1); fixed the merging of arrays (task 3)