Java String Method Concat Javascript Array Length Function Python