def max_len(text, max):
    """ Return a string capped at a specific length.
			@param text: The text to return
			@param max: The maximum length of the string
	"""
    return text if len(text) <= max else text[0:max - 3] + '...'
