Arduino Split String Into Array Js Slice Function In R