fixed several conversion issues regarding numbers.  Made regex format checks more efficient