from string to triple