def has_str_prefix(value: str) -> bool:
    """
    Inspect a token value of type string to check if it has a
    prefix or contains escaped characters.

    Args:
        value (str): the string value of this token

    Returns:
        Boolean defining whether value has a prefix
    """
    string_prefix = ["r", "u", "R", "U", "f", "F", "fr", "Fr", "fR", "FR", "rf", "rF", "Rf", "RF"]
    bytes_prefix = ["b", "B", "br", "Br", "bR", "BR", "rb", "rB", "Rb", "RB"]
    return value[0] in string_prefix or value[0] in bytes_prefix