Used getFileName method to get file name