Fixed string reading when reading to variable in array