A Kaplansky theorem for JB*-triples