Problems and solutions for using arrays and strings