I actually think this should be the job of the config loader. If type == 'list' I see no reason we shouldn't trim whitespace, can you?