Parser now ignores whitespace. Added methods to check for num, operator and space