fix bug
use regex to replace