Little fix of replace define&import string process.