human
remove non alphanumeric characters from string.
assistant
Here is a Python code to remove non-alphanumeric characters from string strings

import string

def remove_non_alphanumeric(s):
    """Remove non alphanumeric characters from string."""
    return ''.join([c for c in s if c.isalnum()])

# Enter the string
string_to_remove = "This is a string to remove non alphanumeric characters from"

# Calling the function
print((remove_non_alphanumeric(string_to_remove)))

#Example Output
# Thisisastringtoremovenonalphanumericcharactersfrom

#Remember to inspect code for bugs.