Convert array to string to call index() on it