Z.replace is not a function

actually there is if you are interested using uql functions