clean-up whitespace hook