Use strtok_r to parse string rather than regular expression.
case insensitive map.