Ive got filename changing working when I update the database with the new filename so that it replaces whitespace with - and it changes all to lowercase:
"".strtolower (str_replace(" ", "-", ($WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]))) ."" . $WA_AB_Split . "1";