throws Throwable
  public static Value nl2br(Env env, Value stringV)    throws Throwable  {    String string = stringV.toString();    int strLen = string.length();    StringBuilder sb = new StringBuilder();    for (int i = 0; i < strLen; i++) {      char ch = string.charAt(i);      if (ch == '\n') {        sb.append("<br />\n");      }      else if (ch == '\r') {        if (i + 1 < strLen && string.charAt(i + 1) == '\n') {          sb.append("<br />\r\n");          i++;        }        else {          sb.append("<br />\r");        }      }      else {        sb.append(ch);      }    }    return new StringValueImpl(sb.toString());  }