Clean up deprecation warnings in Parser module
Use ~ for negation, rather than -
Make list case insensitive