Fractions from string