Fix 'replaceFirst' for fuzzy queries - uses Text functions now