def get_prefered_quotation_from_string(string):
    """
    Tries to determin the quotation (`"` or `'`) used in a given string.
    `"` is the default and used when no quotations are found or
    the amount of `"` and `'` are equal
    """
    return "'" if string.count("'") > string.count('"') else '"'