Remove spaces in paths and key place holders