docs: def replaceNewlines(string, newlineChar):
  	"""There's probably a way to do this with string functions but I was lazy.
  		Replace all instances of \r or \n in a string with something else."""
  	if newlineChar in string:
  		segments = string.split(newlineChar)
  		string = ""
  		for segment in segments:
  			string += segment
  	return string