def _index_of_end(str, part):
  """If part is in str, return the index of the first character after part.
  Return -1 if part is not in str."""
  index = str.find(part)
  if index >= 0:
    return index + len(part)
  return -1