A manually input is always error-prone. The only way to solve this is to check the input against the field-values and remove invalid values. It's not easy to check:
- values separator
- max/min length --> len
- numeric / string --> purgechar() + keepchar()
I suggest you choosed another way to simplify the user-actions, perhaps with additionally categories/cluster on certain fields or ....