Error: Illegal file name "',k,'"; must match "\w[\w-]*\.*[\w-]*"