new copyStringToClipboard method

from Thomas Holder