Java Arraylist Set Add Function To Powershell Substring