def _remove_trailing_chars(text: str) -> str:
    """ Removes trailing characters from the beginning or end of a string. """
    chars = ['.', '@', '/', '&', '-', "'"]
    for char in chars:
        text = text.strip(char)
    return text