def convert_string_AE2BE(string, AE_to_BE):
    """convert a text from American English to British English

    Parameters
    ----------
    string: str
        text to convert

    Returns
    -------
    str
        new text in British English
    """

    string_new = " ".join([AE_to_BE[w] if w in AE_to_BE.keys() else w for w in string.split()])

    return string_new