def strip_var(v):
	"""Strip a bit of text
	>>> strip_var(' foo bar  ')
	'foo bar'
	"""
	if v:
		return v.strip()
	else:
		return None
Strip a bit of text
	>>> strip_var(' foo bar  ')
	'foo bar'
	
recipes/Python/577179_Create_book_index/recipe-577179.py