def alpha_numeric_filter(string):
    """Takes a string and returns a filtered string with only alpha-numeric characters"""
    filtered = ""

    for char in string:
        if char.isalnum() or char == ' ':
            filtered += char
        if char == '\n':
            continue

    return filtered