Checks if string is an word file.
static bool isWord(String filePath) { final ext = filePath.toLowerCase(); return ext.endsWith(".doc") || ext.endsWith(".docx"); }