Incorrect use of single and double quotes was causing error when adding strings to the array.