def convert_mug_to_cup(value):
    """Helper function to convert a string from mug to cup"""
    if isinstance(value, str) and value.lower() == 'mug':
        return 'cup'
    else:
        return value