In my opinion, the factors really should be doubles instead of strings.