You would want to store the title in something like a session variable and then perform string manipulation to add the dashes into the value. Loop through and find the spaces and replace them with dashes. Then in Digital File Pro, you would want to use the session variable to put in front of the file name.
Here is a link to the PHP string functions:
book.strings.php