_covertToNumberIfNumber(str) {
        const num = Number(str);
        return num.toString() === str ? num : str;
    }
Convert the string to a number if it looks like one.
@param {string} str - The string to convert.
@returns {string|number} The number if converted or the string if not.
@private