Revert "Changed code to handle spaces in filenames."

This reverts commit 5a9fb4be30da90e9a6390033879b8fa719492789.
Added code to handle spaces in filename