def _stringToList(str: str) -> list:
  """Convert a string containing endLine char into
    a list.
  """

  l = []
  s = ''
  for c in str:
    if c == '\n':
      l.append(s)
      s = ''
    else:
      s += c
  l.append(s)
  return l