Create a Python script for formatting a sentence.
He  went  to the store
def format_sentence(sentence):
    sentence = sentence.split()
    sentence = [word.capitalize() for word in sentence]
    return ' '.join(sentence)

print(format_sentence("He went to the store"))