Fix bug; replace string was fail when creating test conf