Remove space in folder name and file names for templates