extract strings and regexps to the constants