Divided Parser into functions.
Made Parser handle multiple spaces and leading spaces (extensively tested this feature).