Discover how the FindWholeWordsOnly property enhances your search with accurate results, ensuring oldValue matches only as a standalone word.... Document doc = new Document (); DocumentBuilder...Louisville." , doc . GetText (). Trim ()); See Also class FindReplaceOptions...