Strip stray trailing whitespace.