FILES returns a space and then the file names. Simply change P$[0] to RIGHT(P$[0],LEN(P$[0])-1)