druuna, thanks but no, there is no "1" in the script, I checked again.
If the directory has these files
cApItAl
CaPiTaL
lower
when i run the script above I get:
cApItAl HAS a Capital letter in its filename!
CaPiTaL HAS a Capital letter in its filename!
lower HAS a Capital letter in its filename!