remove spaces in spec