you seem to be missing a parameter, example: $replace(text,replace-what,replace-with)