Lot of times, I copy the text but before pasting want to remove a word or make some other changes or add “wget” to the URL, quite common. So, I came up with this alias
replace='echo $(xclip -i)|sed 's/text//'|xclip -o' and this depends on xlip, which you can install with
dnf install xclip