I would suggest create method for computing that selector and instead of replacing strings we can use string concatenation like: ```String.format("div.autocomplete div[title=\"%s\"]", toolName);```