Java Arraylist Check If Element Is String A Primitive Data