trailing whitespace hook