fix up the trailing whitespace function