Added more special value checking to the stringToFloat function and allowed d and D to be used in place of e and E to denote the exponent.