Corrected string reading for tiledata