Bash Read String Into Arraylist Remove