only call replace on text items