Oops, removed the wrong replace clause. Fixed.