use regex to sanitize text