Transform String Into Array Javascript Length Method