Only wrap regex pattern in quotation marks