make return value of getFileName() and getSentence() optional

make return value of getFileName() and getSentence() optional