ABJ triality: from higher spin fields to strings