handle spaces in detector names