in reply to Variable in a string

Could it be that you read a directory with these file names and do something with these file names?

Use single quotes or q{} for such file names.