def startswith_token(s, prefix, separators=None):
	"""Tests if a string is either equal to a given prefix or prefixed by it
	followed by a separator.
	"""

	if separators is None:
		return s == prefix

	prefix_len = len(prefix)

	if s.startswith(prefix):
		if len(s) == prefix_len:
			return True

		if isinstance(separators, str):
			sep = separators
			return s.find(sep, prefix_len) >= 0

		for sep in separators:
			if s.find(sep, prefix_len) >= 0:
				return True

	return False