Fix string error
Improved regex to switch to GUI
Return to use the first file as the main