Keyword density: added word boundary check