Here you can find the source of copy(String original)
public static String copy(String original)
//package com.java2s; public class Main { public static final String EMPTY = ""; public static String copy(String original) { if (isEmpty(original)) return EMPTY; return new String(original.toCharArray()); }// www.jav a 2 s .com public static boolean isEmpty(String text) { return (text == null) || text.trim().equals(""); } }