Replace all the dots

Simple fix adding global flag to replace all the dots in the hostname