Correct code excerpt in post. Need to strip traling spaces

Proper QIF file format assumes no trailing spaces.