fix marking of forbidden words at end of string