merge the two problem
solve the problem of ' and ^