FileName := FileOpen1.Dialog.FileName;
if (FileName = 'aaaaa.txt') then
 (ある動作)

FileNameに「aaaaa.txt」が含まれている時のみに(ある動作)をしたいのですが、
どう書けば良いのでしょうか?