def manual_sentence_spelling(x, spelling_dictionary):
    """
    Applies spelling on an entire string, if x is a key of the spelling_dictionary.
    :param x: (string) sentence to potentially be corrected
    :param spelling_dictionary: correction map
    :return: the sentence corrected
    """
    if x in spelling_dictionary:
        return spelling_dictionary[x]
    else:
        return x