Python Push Pop Array Javascript Length Of A String