fixed space parser to support multiple spaces in file. Fixed logic error where null pointer may have been inadvertently referenced.