human
how to get stem of filename.
assistant
Here is a Python code to get the filename of the file

import re

def get_stem(filename):
    """
    :param filename:
    :return:
    """
    return re.sub(r'[^a-zA-Z0-9]', '', filename)

# Enter the file name
file_name ="purple skateboard"

# Open the file
file_obj = open(file_name, "r")

# Calling the function
stem = get_stem(file_name)

# Print the stem

#Remember to inspect code for bugs.