Replacing a word with the same word but with capital letters leads to an infinite loop in the FindReplaceDialog when the search and replace values are surrounded by spaces. For example, search for " and " and replace with " AND ". Workaround: Create a custom dialog and modify the logic for replacing text. Available in LIB Version 2018.1.319.