Updated file name checks for textEditor