added text replacement to kwargs