Godot Version
4.6 beta3
Question
Both variables are String. I’m just trying to big fart.
Your test is the wrong way around. It should be
if line_edit.text.begins_with(command_name):
command_name is the shorter string, and a short string can never begin with a longer string.
“load_room” does not begin with “load_room(‘’)”, but “load_room(‘’)” begins with “load_room”.
For some reason I assumed it was beginning with just the first letter not the whole string, thanks.