Using wildcards is definitely more elegant, but if image3.txt existed it would also meet the If condition (perhaps unwanted.)