code: def from_string(string):
          
          lines = list(clean_lines(string.splitlines()))
          params = {}
          for line in lines:
              for sline in line.split(';'):
                  m = re.match(r'(\w+)\s*=\s*(.*)', sline.strip())
                  if m:
                      key = m.group(1).strip()
                      val = m.group(2).strip()
                      val = Incar.proc_val(key, val)
                      params[key] = val
          return Incar(params)
docs: Reads an Incar object from a string.
  
          Args:
              string (str): Incar string
  
          Returns:
              Incar object