I've moved away from using this long line if/then/or/if/then statements. They're confusing to read through. It's fine that they'll be included in this merge but I will end up formatting all of this completely differently during a refactor of this file at a later point. 

'COMMA', 'TAB' and 'SPACE' should probably be variables. Again, this would be fixed when I refactor. Not a big deal at this point.