Create a Python function to remove all non-alphanumeric characters from a string.
"Hello, $World!"
def clean_string(string):
    cleanedString = ""
    for c in string:
        if c.isalnum():   
            cleanedString += c 
  
    return cleanedString