Trim .local from hostname