def remove_namespace_from_string(name):
    """
    Removes namespace from given string. Does not matter if the given name is a short or long one
    :param name: str
    :return: str
    """

    sub_name = name.split('.')
    if not sub_name:
        return ''

    return sub_name[-1]