Made standard text reader a bit more robust when reading numbers