public static Object trim(String content) {
public static String trim(String content) {
    public static Object trim(String content) {        if (content == null)            return null;        if (content.length() == 0)            return content;        TextScanner scanner = new TextScanner(content);        int lines = scanner.getLineCount();        if (lines == 0)            return "";        else if (lines == 1) {            return scanner.getLine(0);        }        StringBuffer buffer = new StringBuffer();        for (int i = 0; i < lines; i++) {            if (i > 0 && i < lines - 1)                buffer.append('\n');            scanner.appendLine(buffer, i);        }        return buffer.toString();    }