def number_else_string(text):
    """
    Converts number to an integer if possible.
    :param text: Text to be converted
    :return: Integer representation of text if a number.  Otherwise, it returns the text as is
    """
    return int(text) if text.isdigit() else text