def dedent(text):
	"""Removes any leading whitespace from each line in a string.
	
	This splits the string into lines through \n so this works for single and multi line strings."""

	return "\n".join(line.lstrip() for line in text.split("\n"))