Support comments and spaces in config