Typescript Remove Item From String Array Length In Java