import string


def clean_review(s):
	"""
	Cleans up a sentence by fixing capitalization, punctuations, and spaces
	Parameters:
		s: the stirng to be cleaned
	Returns:
		the cleaned up string
	"""
	s = s.replace("\n", "")
	l = list(s)
	l[0] = l[0].upper()
	i = 0
	while i < len(l) - 2:
		if l[i] == "\"":
			l.pop(i)
		elif l[i] == ".":
			i += 2
			l[i] = l[i].upper()
		i += 1
	if l[-1] == " ":
		if l[-2]  in string.punctuation:
			l.pop(-1)
			l[-1] = "."
		else:
			l[-1] = "."
	elif l[-1] != ".":
		l.append(".")
	s = "".join(l)
	s = s.replace(" i ", " I ")
	return s