removed unused imports.
Fixed regex for replacing "0.0.0.0" with a value.