var arr:Array=['hello', 'my dear friend']; var str:String=arr.join('!-splitted-!'); var arr2:Array=str.split('!-splitted-!');