def convertNodeTextToList(nodeText, sep=None):
  """
    Convert space or comma separated string to list of string
    @ In, nodeText, str, string from xml node text
    @ Out, listData, list, list of strings
  """
  listData = None
  if sep is None:
    if ',' in nodeText:
      listData = list(elem.strip() for elem in nodeText.split(','))
    else:
      listData = list(elem.strip() for elem in nodeText.split())
  else:
    listData = list(elem.strip() for elem in nodeText.split(sep))
  return listData