removing trailing spaces in files