Remove trailing whitespaces when loading YAML