filter invalid line in resource file