I’m not sure if Roblox has that feature yet. Pasting is something we can already do, but copying text to clipboard from a running Roblox game, not so sure.
There are topics like below, which are just suggestions, so you can give it a like if you want the feature.
Please be more specific on how you want to “get rid of such piece of text”. Where do you want it to get rid of from? A text label gui or a script?
If in a script, you can go use one of the features in the Lua string library that cuts that specific part of your string. Click this documentation for reference.