Tried using new clipboard method

getText() is deprecated.. but works better than getPrimaryClip (which
leaves data other than the paste)