remove all white spaces and limit file name size to 255