fix detecting trailing spaces within a comment