How do I poll a file's name?

Yet another question from me, I guess.

In the picture that follows, you see a file name. Is there a way to get that name and put it into a variable to be passed to another function?


Alternatively, can I get the name of the .blend file sans extension or file path?

Thank you so much, these will work.