import string


def capitalize(string_raw):
    """Capitalize a string, even if it is between quotes like ", '.

    Args:
        string_raw (string): text to capitalize.

    Returns:
        string

    """
    # return re.sub(r"\b[\w']", lambda m: m.group().capitalize(), string.lower())

    return string.capwords(string_raw.lower())