Do regex validation and character stripping