raise ValueError("Parameter string is empty")
# All lower-case and strip spaces out + last dot
- string = string.lower().strip().rstrip(".")
+ string = string.lower().strip().rstrip(".").replace("..", ".")
logger.debug("string='%s' - #1", string)
# No port number