added double scan, null enum, and caseless equals

Implemented string scanning functions for doubles. Added a null enumerator.
Small fix in string I/O to use better scoped variables. Added case
insensitive string equality.