Write a Python function to filter strings using a filter function as a parameter.
def filter_strings(strings, filter_function):
    filtered = []
    for string in strings:
        if filter_function(string):
            filtered.append(string)
    return filtered