removing filename from the content of a query