Function to convert camel case to underscore