Speaking from a position of SQL ignorance, why the wildcard?

Surely Contains() means "has the substring", so Contains(System.filename,'.xls') will match foosheet.xls and barsheet.xlsx as both have the .xls substring.

It'd actually be trickier to limit the query to only files ending in .xls