prevent empty strings in altHostnames arary