def break_line(string, max_length):
	"""
	Helper method for display_result(). Breaks a line by max length.
	Parameters:
		string: a string to check
		max_length: the length to break the line at if the string is too long
	Returns:
		return_list: a list of string after breaking line
	"""
	return_list = []
	string_list = string.split(" ")
	char_count = 0
	current_string = ""
	for s in string_list:
		if len(s) > max_length: # found extremely long string
			return_list.append(current_string)
			return_list.append(s)
			char_count = 0
			current_string = ""
			continue

		char_count += len(s)
		if char_count > max_length:
			return_list.append(current_string)
			char_count = 0
			current_string = ""
		else:
			current_string += s + " "

	return_list.append(current_string)
	return return_list