def searchterm_match(term, string):
	"""
		returns 2 for perfect match, and 1 if term is substring
	"""
	if term.lower() in string.lower():
		if term.lower() == string.lower():
			return 2
		else:
			return 1
	else:
		return 0