Trim '.' from hostname