If the hostname ends with '-', replace the '-' with '0'