Use -n option instead of replace-regexp-in-string
candidates -> minibuffer-patterns
candidate -> search-word