transfered readFromString to reader.py