Right now, I am using the find function and search through a string for any character that is forbidden. I only allow 0-9, A-Z, a-z, and — While using the find function for all the forbidden characters do work, the checklist itself is long and it looks ugly. Is there a better way to achieve this? Basically a function that returns -1 if there is any other character beside 0-9, a-Z, A-Z and —