Typescript Remove Item From String Array Creation In Java