Why you do this?
It is not up to you to control the user.
It is to you to validate the input!

This might be a sever performance hit as well.