does anyone know what the code is for basic editing commands?

for example, let's say i have a string of text loaded in a variable called str, and i want to copy tht text and have it pasted to the clipboard so i can paste it where i want to somewhere else.

i tried copy.str, and str.copy, but of course that did not work.