toCamelCase method updated to use underscores