This script will remove white spaces from all file names in a directory. You need to have the script in the directory where the files are and execute it from there. Download the source here.
#!/bin/sh
# Make the directory for output
mkdir fixed
# Remove white spaces
for file in *
do
cp "$file" `echo -n "fixed/$file" | sed \'s/ //g\'`
done
# Make the directory for output
mkdir fixed
# Remove white spaces
for file in *
do
cp "$file" `echo -n "fixed/$file" | sed \'s/ //g\'`
done