Updated file type string recognition.