fixes problem with highlighting trailing spaces