Object of type class java.lang.String cannot be used as an array