Calculates the score from a bowling score string.