fix bug to input regexp pattern, but tagchain allow only strings