Updating to be compliant with 1.8

Need to look up using a string, the other way of looking it up using a class name issues a deprecation warning