handle spaces in name of output