Avoid /g on s///, fixes search parser