1.Give some comments of the functionality.
2.Fix a bug about the Path input(not null).
3.String A is to be substituted to string B. A is not supposed to be empty sting while B has no restriction.