Remove trailing spaces and blank/empty lines in the resources files