Adds a Fraction constructor that accepts strings.