How To Iterate Through A String In Js