import unicodedata


def normalize(grapheme: str) -> str:
    """
    Normalize the string representation of a grapheme.

    Currently, normalization involves NFD Unicode normalization and stripping any leading
    and trailing white spaces. As these opeations might change in the future, it is
    suggested to always use this function instead of reimplementing it in code
    each time.

    @param grapheme: The grapheme to be normalized.
    @return: The normalized version of the grapheme.
    """

    return unicodedata.normalize("NFD", grapheme).strip()