remove spaces at end of line in bib files