Added funtion to remove whitespace in filenames