Made change to remove spaces for S3 keys.