fixed bug for replace tag, and update demo and readme