def get_tag_str(cmd, tag):
	"""
    Returns the string for a tag in a command, or 'None' if the tag doesn't exist.
    """
	idx = 0
	while len(cmd) > idx and cmd[idx] != tag:
		idx += 1
	if idx <= len(cmd) - 1:
		return cmd[idx + 1]
	return None