Now using a hash with simulated function pointers to drive program
Added for function to check for whitespace