Parsing error given in lineedit text

Godot Version

Godot 4.6.2

Question

I am having trouble with user input in a simple text field, as I receive the following error whenever I try to read a textfield’s entered text as a string:

The entered text for the save file name is:

The code for my save window is as follows, and I don’t know why it can’t reach the bottom message in the save button’s if statement:

I have been able to get the other error messages, but like I said before haven’t been able to reach the else statement

Thank you for your time

Make sure to paste code instead of screenshots

Your potentialSaveName.chr(i) doesn’t convert a character at index i it converts (or attempts to) i itself, given 0, the first index it will attempt to convert to a null character. You may be trying to use potentialSaveName[i]

If you only want filenames as save names you can check if potentialSaveName.is_valid_filename()

Thank you! That is exactly what was wrong

Also sorry about posting a picture, will post the actual code next time