@staticmethod
def shorten_caption(caption):
    """Loops through the caption and trims it at its latest sentence
        ending (., !, ? or ♪).

        Parameters
        ----------
        caption: str
            The caption to shorten/trim.

        Returns
        -------
        caption: str
            The shortened caption, ending at its latest sentence ending."""
    for i in range(len(caption) - 1, 0, -1):
        if caption[i] == '.' or caption[i] == '!' or caption[i] == '?':
            return caption[:i + 1]
        elif caption[i] == '♪':
            return caption[:i]
    return caption
