@staticmethod
def _splitNumber(stg):
    """
    Extracts an ending integer from a string if there is one.
    :return str, int: prefix, number
    """
    prefix = stg
    num = None
    for idx in range(len(stg)):
        try:
            _ = int(prefix[-1])
            if num is None:
                num = prefix[-1]
            else:
                num = prefix[-1] + num
            prefix = prefix[:-1]
        except:
            break
    if num is None:
        return prefix, None
    else:
        return prefix, int(num)
