changed titlestring to use fnamemodify