properly match labels with trailing whitespace

fixes issue #1 (woo!)