import re


def prep_for_search(string):
    """
    Expects a string. Encodes strings in a search-friendy format,
    lowering and replacing spaces with "+"
    """
    string = re.sub('[^A-Za-z0-9 ]+', '', string).lower()
    string = string.replace(" ", "+")
    return string