use strings instead of regexps for speed