Given the string: “NG27U20"

How can I know programmatically that this future is of natural gas? 

Author