This works great with numbers also and we don't have to run a separate parseInt loop for them as mentioned in another answer below. This is real deep thinking. Appreciate it very much and I think the best answer among all !!