I think a validator could be used here. The following article provides an example of how to check name and number in the rename wizard. You should be able to modify this to suit your purposes:
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS119050