cannot call replace on an object.