Add freezing string parsing to molecule.py