added longest unique substring