Use regex to make sure no illegal characters are being allowed into the tags