update typeof string checks to use underscore