Adding function to get file name from URL