Arduino String Length Array Js Slice Function In R