def ensure_unique_string(preferred_string, current_strings):
    """ Returns a string that is not present in current_strings.
        If preferred string exists will append _2, _3, .. """
    string = preferred_string

    tries = 1

    while string in current_strings:
        tries += 1
        string = "{}_{}".format(preferred_string, tries)

    return string