hdt: fix precedence problem in double-space check