ignore trailing whitespaces in highlighing