Made improvements based on forum feedback

Replaced custom function with System.getStringDataFromClipboard.