how to handle the error of duplicate value in the list. Values are fed into the input and entered into the list. If there is a duplicate then the value is renamed. eg: