Allow spaces at either end of the C import spec (#3742)