def trimstring(dirtystring):
    """Cleans out a dirty strings
Makes it lowercase, and strips out any whitespaces from start and end"""
    cleanstring = dirtystring.lower().strip()
    return cleanstring