remove all white spaces and limit file name size to 50