replace markers in search