Implements the cleanup of "enter value here..." in the advanced search fields.
Closes #18997