Add leading/trailing whitespace classes to hard tab tokens

Closes #2304