String hourData = "[["qwe","asd"],["1433223","4396"]]" String rep = hourData.replaceAll("[\\[\\]]","");