There is something like 'field validation', which determines what is allowed to be typed in a field and what is not. However, the title field is a special case. It is not regarded as an ordinary field. This module makes it possible to set a validation for the title field as well.
Here I avoid it (pipe) sign. If you do use this, you can not save the node.
You can do many other settings. Also make the field unique ...