Revert "Added code to handle spaces in filename"

This reverts commit 34d4ce34aae64368ce485e90c761f4e9ff08b63a.
Made changes to handle spaces in filenames