Transferable processContents(Transferable t) throws DocumentException {
	  String result = "";
	  boolean hasText = (t != null) && t.isDataFlavorSupported(DataFlavor.stringFlavor);
	 // System.out.println(t.isDataFlavorSupported(DataFlavor.stringFlavor));
	  //System.out.println("Processing: " + t.toString());  
	  if (hasText) {
		  System.out.println("Has text");
		  try {
			  StringManipulator x = new StringManipulator(t);
			  result = x.toString();
			  System.out.println("Completed");
		  }
		  catch (UnsupportedFlavorException e){
			  e.printStackTrace();
		  } catch (IOException e) {
			  e.printStackTrace();
		  }
		  //return t;
		 return new StringSelection(result);
	  }
	  else{
		  return t;
	  }
  }