Javascript String Array Functions Python Colon